- ContextedException() : backtrace_(simgrid::xbt::backtrace()), procname_(xbt_procname()), pid_(xbt_getpid()) {}
- explicit ContextedException(Backtrace bt) : backtrace_(std::move(bt)), procname_(xbt_procname()), pid_(xbt_getpid())
- {
- }
- explicit ContextedException(ThrowPoint throwpoint, Backtrace bt)
- : backtrace_(std::move(bt)), procname_(xbt_procname()), pid_(xbt_getpid()), throwpoint_(throwpoint)
- {
- }
- virtual ~ContextedException();
- Backtrace const& backtrace() const { return backtrace_; }
- int pid() const { return pid_; }
- 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();
- }