-/** @brief shows an exception content and the associated stack if available */
-void xbt_ex_display(xbt_ex_t* e)
-{
- simgrid::xbt::log_exception(xbt_log_priority_critical, "UNCAUGHT EXCEPTION", *e);
-}
-
-/** @brief returns a short name for the given exception category */
-const char* xbt_ex_catname(xbt_errcat_t cat)
-{
- switch (cat) {
- case unknown_error:
- return "unknown error";
- case arg_error:
- return "invalid argument";
- case bound_error:
- return "out of bounds";
- case mismatch_error:
- return "mismatch";
- case not_found_error:
- return "not found";
- case system_error:
- return "system error";
- case network_error:
- return "network error";
- case timeout_error:
- return "timeout";
- case cancel_error:
- return "action canceled";
- case thread_error:
- return "thread error";
- case host_error:
- return "host failed";
- case tracing_error:
- return "tracing error";
- case io_error:
- return "io error";
- case vm_error:
- return "vm error";
- default:
- return "INVALID ERROR";
- }
- return "INVALID ERROR";
-}
-