Go to the documentation of this file.
18 #ifndef __ESCRIPT_EXCEPTIONTRANSLATORS_H__
19 #define __ESCRIPT_EXCEPTIONTRANSLATORS_H__
27 #define REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS \
28 register_exception_translator<escript::AssertException>(&escript::AssertionErrorTranslator);\
29 register_exception_translator<escript::IOError>(&escript::IOErrorTranslator);\
30 register_exception_translator<escript::NotImplementedError>(&escript::NotImplementedErrorTranslator);\
31 register_exception_translator<escript::ValueError>(&escript::ValueErrorTranslator)
72 #endif // __ESCRIPT_EXCEPTIONTRANSLATORS_H__
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
The base class for escript exceptions.
Definition: EsysException.h:31
void AssertionErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python AssertionError.
Definition: ExceptionTranslators.cpp:22
void IOErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python IOError.
Definition: ExceptionTranslators.cpp:27
void RuntimeErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python RuntimeError.
Definition: ExceptionTranslators.cpp:37
Definition: AbstractContinuousDomain.cpp:23
void ValueErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python ValueError.
Definition: ExceptionTranslators.cpp:42
virtual const char * what() const
Returns a description of the exception.
Definition: EsysException.h:57
void NotImplementedErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python NotImplementedError.
Definition: ExceptionTranslators.cpp:32