SimGrid
3.21
Versatile Simulation of Distributed Systems
|
Exceptions support (C)
Those fonctions are used to throw C++ exceptions from C code. This feature should probably be removed in the future because C and exception do not exactly play nicely together.
Classes | |
class | xbt_ex |
A legacy exception. More... | |
Macros | |
#define | THROW(c, v) |
Builds and throws an exception. More... | |
#define | THROWF(c, v, ...) |
Builds and throws an exception with a printf-like formatted message. More... | |
#define | THROW_IMPOSSIBLE xbt_throw_impossible(__FILE__, __LINE__, __func__) |
Throw an exception because something impossible happened. More... | |
#define | DIE_IMPOSSIBLE xbt_die("The Impossible Did Happen (yet again)") |
Die because something impossible happened. More... | |
Enumerations | |
enum | xbt_errcat_t { unknown_error = 0, arg_error, bound_error, mismatch_error, not_found_error, system_error, network_error, timeout_error, cancel_error, thread_error, host_error, tracing_error, io_error, vm_error } |
Categories of errors. More... | |
Functions | |
const char * | xbt_ex_catname (xbt_errcat_t cat) |
Get the name of a category. More... | |
void | xbt_throw_unimplemented (const char *file, int line, const char *func) |
Throw an exception because something unimplemented stuff has been attempted. More... | |
#define THROW | ( | c, | |
v | |||
) |
Builds and throws an exception.
#define THROWF | ( | c, | |
v, | |||
... | |||
) |
Builds and throws an exception with a printf-like formatted message.
#define THROW_IMPOSSIBLE xbt_throw_impossible(__FILE__, __LINE__, __func__) |
Throw an exception because something impossible happened.
#define DIE_IMPOSSIBLE xbt_die("The Impossible Did Happen (yet again)") |
Die because something impossible happened.
enum xbt_errcat_t |
Categories of errors.
This very similar to std::error_catgory and should probably be replaced by this in the future.
const char* xbt_ex_catname | ( | xbt_errcat_t | cat | ) |
Get the name of a category.
void xbt_throw_unimplemented | ( | const char * | file, |
int | line, | ||
const char * | func | ||
) |
Throw an exception because something unimplemented stuff has been attempted.