C++ main module for gpm Package
1.0
|
this class describes the exceptions raised for CORE package More...
#include <CORE_Exception.h>
Public Member Functions | |
CORE_Exception () | |
build an exception More... | |
CORE_Exception (const tString &package) | |
build an exception in package More... | |
CORE_Exception (const tString &package, const tString &where, const tString &what) | |
CORE_Exception (const tString &package, const tString &assertion, const tString &file, const unsigned int &line, const tString &function) | |
tString | getMessage () const |
return the message of the exception More... | |
Static Public Member Functions | |
static void | enablePrint (const tBoolean &enable) |
this class describes the exceptions raised for CORE package
CORE_Exception::CORE_Exception | ( | ) |
build an exception
CORE_Exception::CORE_Exception | ( | const tString & | package | ) |
build an exception in package
CORE_Exception::CORE_Exception | ( | const tString & | package, |
const tString & | where, | ||
const tString & | what | ||
) |
Constructor with text information. The text can be retrieved by the what() method, i.e.
LaException e("myFunction()", "some error"); std::cout << e.what();
If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.
References CORE_Object::outputPrint(), and tString.
CORE_Exception::CORE_Exception | ( | const tString & | package, |
const tString & | assertion, | ||
const tString & | file, | ||
const unsigned int & | line, | ||
const tString & | function | ||
) |
Constructor with more text information, similar to the assert(3) macro.
If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.
References CORE_Object::outputPrint(), and tString.
|
inlinestatic |
Static (i.e. library-wide) flag whether any new LaException should also print its message to stderr. Disabled by default.
|
inline |
return the message of the exception
References tString.
Referenced by GPM_ModelFunction::isMappingValid(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePTEdgesStates(), and GPM_ModelFunction::updateTransformerGraphStates().