SimGrid  3.14.159
Versatile Simulation of Distributed Systems
ex.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <xbt/backtrace.hpp>
#include "src/internal_config.h"
#include "xbt/ex.h"
#include <xbt/ex.hpp>
#include "xbt/log.h"
#include "xbt/log.hpp"
#include "xbt/backtrace.h"
#include "xbt/str.h"
#include "src/xbt_modinter.h"
#include "src/xbt/ex_interface.h"
#include "simgrid/sg_config.h"

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (xbt_ex, xbt, "Exception mechanism")
 
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)
 shows an exception content and the associated stack if available More...
 
const char * xbt_ex_catname (xbt_errcat_t cat)
 returns a short name for the given exception category More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( xbt_ex  ,
xbt  ,
"Exception mechanism"   
)

◆ _xbt_throw()

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.

◆ xbt_ex_display()

void xbt_ex_display ( xbt_ex_t e)

shows an exception content and the associated stack if available

Display an exception.