GammaLib
2.1.0.dev
|
#include <GException.hpp>
Public Member Functions | |
test_failure (const std::string &origin, const std::string &message="") | |
Failure test. More... | |
Public Member Functions inherited from GExceptionHandler | |
GExceptionHandler () | |
virtual | ~GExceptionHandler () throw () |
virtual const char * | what () const throw () |
Exception message. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GExceptionHandler | |
std::string | m_origin |
std::string | m_message |
Definition at line 161 of file GException.hpp.
GException::test_failure::test_failure | ( | const std::string & | origin, |
const std::string & | message = "" |
||
) |
Failure test.
[in] | origin | Method throwing the exception. |
[in] | message | Optional error message. |
Used in unit tests to notice a fail in a try block
Definition at line 321 of file GException.cpp.
References GExceptionHandler::m_message, and GExceptionHandler::m_origin.