exception.hh File Reference
Include dependency graph for exception.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CATCH_ALL_EXCEPTIONS(m)
 Catch all exceptions which may be sent when C++ code is called. More...
 

Macro Definition Documentation

◆ CATCH_ALL_EXCEPTIONS

#define CATCH_ALL_EXCEPTIONS (   m)
Value:
catch (const std::exception& exc) { \
PyErr_SetString(DGPYERROR(m), exc.what()); \
return NULL; \
} \
catch (const char* s) { \
PyErr_SetString(DGPYERROR(m), s); \
return NULL; \
} \
catch (...) { \
PyErr_SetString(DGPYERROR(m), "Unknown exception"); \
return NULL; \
} \
struct e_n_d__w_i_t_h__s_e_m_i_c_o_l_o_n
#define DGPYERROR(m)
Definition: dynamic-graph-py.hh:186

Catch all exceptions which may be sent when C++ code is called.