|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
A legacy exception.
It is defined by a category and a value within that category (as well as an optional error message).
This used to be a structure for C exceptions but it has been retrofitted as a C++ exception and some of its data has been moved in the WithContextException base class. We should deprecate it and replace it with either C++ different exceptions or std::system_error which already provides this (category + error code) logic.
#include <ex.hpp>
Public Member Functions | |
| xbt_ex () | |
| xbt_ex (simgrid::xbt::ThrowPoint throwpoint, const char *message) | |
| ~xbt_ex () override | |
Public Member Functions inherited from simgrid::xbt::WithContextException | |
| WithContextException () | |
| WithContextException (Backtrace bt) | |
| WithContextException (ThrowPoint throwpoint, Backtrace bt) | |
| virtual | ~WithContextException () |
| Backtrace const & | backtrace () const |
| int | pid () const |
| std::string const & | processName () const |
| ThrowPoint & | throwPoint () |
Public Attributes | |
| xbt_errcat_t | category |
| Category (what went wrong) More... | |
| int | value |
| Why did it went wrong. More... | |
|
inline |
|
inline |
| throwpoint | Throw point (use XBT_THROW_POINT) |
| message | Exception message |
|
override |
| xbt_errcat_t xbt_ex::category |
Category (what went wrong)
| int xbt_ex::value |
Why did it went wrong.