escript Revision_
Namespaces | Macros | Functions
ExceptionTranslators.h File Reference
#include "system_dep.h"
#include "DataTypes.h"
#include "EsysException.h"

Go to the source code of this file.

Namespaces

namespace  escript
 

Macros

#define REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS
 

Functions

void escript::AssertionErrorTranslator (const EsysException &e)
 Function which translates an EsysException into a python AssertionError.
 
void escript::IOErrorTranslator (const EsysException &e)
 Function which translates an EsysException into a python IOError.
 
void escript::NotImplementedErrorTranslator (const EsysException &e)
 Function which translates an EsysException into a python NotImplementedError.
 
void escript::RuntimeErrorTranslator (const EsysException &e)
 Function which translates an EsysException into a python RuntimeError.
 
void escript::ValueErrorTranslator (const EsysException &e)
 Function which translates an EsysException into a python ValueError.
 

Macro Definition Documentation

◆ REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS

#define REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS
Value:
register_exception_translator<escript::AssertException>(&escript::AssertionErrorTranslator);\
register_exception_translator<escript::IOError>(&escript::IOErrorTranslator);\
register_exception_translator<escript::NotImplementedError>(&escript::NotImplementedErrorTranslator);\
register_exception_translator<escript::ValueError>(&escript::ValueErrorTranslator)
void ValueErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python ValueError.
Definition ExceptionTranslators.cpp:42
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 NotImplementedErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python NotImplementedError.
Definition ExceptionTranslators.cpp:32