Go to the documentation of this file. 3 #ifndef DYNAMIC_GRAPH_PYTHON_EXCEPTION 4 #define DYNAMIC_GRAPH_PYTHON_EXCEPTION 10 #define CATCH_ALL_EXCEPTIONS(m) \ 11 catch (const std::exception& exc) { \ 12 PyErr_SetString(DGPYERROR(m), exc.what()); \ 15 catch (const char* s) { \ 16 PyErr_SetString(DGPYERROR(m), s); \ 20 PyErr_SetString(DGPYERROR(m), "Unknown exception"); \ 23 struct e_n_d__w_i_t_h__s_e_m_i_c_o_l_o_n