C++ main module for emicrom 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 tUInteger &line, const tString &function) | |
tString | getMessage () const |
return the message of the exception More... | |
virtual tString | toString () const |
return the message of the exception More... | |
Friends | |
ostream & | operator<< (ostream &out, const CORE_Exception &obj) |
print the class object More... | |
this class describes the exceptions raised for CORE package
CORE_Exception::CORE_Exception | ( | ) |
build an exception
References CORE_Out::ERROR_MSG, CORE_Object::out(), and CORE_Out::print().
CORE_Exception::CORE_Exception | ( | const tString & | package | ) |
build an exception in package
References CORE_Out::ERROR_MSG, CORE_Object::out(), and CORE_Out::print().
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_Out::ERROR_MSG, CORE_Object::out(), CORE_Out::print(), and tString.
CORE_Exception::CORE_Exception | ( | const tString & | package, |
const tString & | assertion, | ||
const tString & | file, | ||
const tUInteger & | 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_Out::ERROR_MSG, CORE_Object::out(), CORE_Out::print(), and tString.
|
inline |
return the message of the exception
References tString.
Referenced by MATH_ElementaryMultiLevelsToeplitzMatrix::buildSpectralVectorProjector(), MATH_MultiLevelsToeplitzMatrix::copy(), MATH_MultiLevelsFFTToeplitzMatrix::diagonalize(), EMM_4Tensors::doubleDotCrossDoubleDotScalar(), EMM_4Tensors::doubleDotCrossSquaredScalar(), EMM_4Tensors::doubleDotProduct(), MATH_MultiLevelsToeplitzMatrix::setLevels(), EMM_4Tensors::squaredDoubleDotCrossScalar(), EMM_4Tensors::squaredDoubleDotScalar(), and toString().
|
inlinevirtual |
return the message of the exception
References getMessage().
|
friend |
print the class object
out | : output into printing |
obj | object to print |