SimGrid
3.18
Versatile Simulation of Distributed Systems
|
#include <stdlib.h>
#include "xbt/base.h"
#include "xbt/sysdep.h"
#include "xbt/misc.h"
#include "xbt/virtu.h"
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 THROWF(unknown_error, 0, "The Impossible Did Happen (yet again)") |
Throw an exception because someting impossible happened. More... | |
#define | THROW_UNIMPLEMENTED THROWF(unknown_error, 0, "Function %s unimplemented",__func__) |
Throw an exception because someting unimplemented stuff has been attempted. More... | |
#define | THROW_DEADCODE THROWF(unknown_error, 0, "Function %s was supposed to be DEADCODE, but it's not",__func__) |
Throw an exception because some dead code was reached. More... | |
#define | DIE_IMPOSSIBLE xbt_die("The Impossible Did Happen (yet again)") |
Die because something impossible happened. More... | |
Typedefs | |
typedef struct xbt_ex | xbt_ex_t |
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... | |
XBT_ATTRIB_NORETURN void | _xbt_throw (char *message, xbt_errcat_t errcat, int value, const char *file, int line, const char *func) |
Helper function used to throw exceptions in C. More... | |
void | xbt_ex_display (xbt_ex_t *e) |
Display an exception. More... | |
XBT_ATTRIB_NORETURN void _xbt_throw | ( | char * | message, |
xbt_errcat_t | errcat, | ||
int | value, | ||
const char * | file, | ||
int | line, | ||
const char * | func | ||
) |
Helper function used to throw exceptions in C.