X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa63ea9e61b6a65df40769612b744cbd08b057ae..375fd7283ef0853cc5d023747efc9f3821ba97ca:/include/xbt/exception.hpp diff --git a/include/xbt/exception.hpp b/include/xbt/exception.hpp index 8fa032d966..544f6ae247 100644 --- a/include/xbt/exception.hpp +++ b/include/xbt/exception.hpp @@ -83,8 +83,19 @@ public: return backtrace_; } int pid() const { return pid_; } - std::string const& processName() const { return procname_; } - ThrowPoint& throwPoint() { return throwpoint_; } + std::string const& process_name() const { return procname_; } + ThrowPoint& throw_point() { return throwpoint_; } + + // deprecated + XBT_ATTRIB_DEPRECATED_v323("Please use WithContextException::process_name()") std::string const& processName() const + { + return process_name(); + } + XBT_ATTRIB_DEPRECATED_v323("Please use WithContextException::throw_point()") ThrowPoint& throwPoint() + { + return throw_point(); + } + private: Backtrace backtrace_; std::string procname_; /**< Name of the process who thrown this */