-} // namespace simgrid
-
-/** 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
- * @ref 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.
- *
- * @ingroup XBT_ex_c
- */
-class XBT_PUBLIC xbt_ex : public simgrid::Exception {
-public:
- /**
- *
- * @param throwpoint Throw point (use XBT_THROW_POINT)
- * @param message Exception message
- */
- xbt_ex(simgrid::xbt::ThrowPoint&& throwpoint, std::string&& message)
- : simgrid::Exception(std::move(throwpoint), std::move(message))
- {
- }
-
- xbt_ex(const xbt_ex&) = default;
-
- ~xbt_ex(); // DO NOT define it here -- see ex.cpp for a rationale
-
- /** Category (what went wrong) */
- xbt_errcat_t category = unknown_error;
-
- /** Why did it went wrong */
- int value = 0;
-};
-
-namespace simgrid {
-