17 #ifndef __ESCRIPT_EXCEPTIONTRANSLATORS_H__ 18 #define __ESCRIPT_EXCEPTIONTRANSLATORS_H__ 25 #define REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS \ 26 register_exception_translator<escript::AssertException>(&escript::AssertionErrorTranslator);\ 27 register_exception_translator<escript::IOError>(&escript::IOErrorTranslator);\ 28 register_exception_translator<escript::NotImplementedError>(&escript::NotImplementedErrorTranslator);\ 29 register_exception_translator<escript::ValueError>(&escript::ValueErrorTranslator) 65 #endif // __ESCRIPT_EXCEPTIONTRANSLATORS_H__ void AssertionErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python AssertionError.
Definition: ExceptionTranslators.cpp:21
Definition: AbstractContinuousDomain.cpp:22
void IOErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python IOError.
Definition: ExceptionTranslators.cpp:26
void RuntimeErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python RuntimeError.
Definition: ExceptionTranslators.cpp:36
void ValueErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python ValueError.
Definition: ExceptionTranslators.cpp:41
void NotImplementedErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python NotImplementedError.
Definition: ExceptionTranslators.cpp:31