Standard exception type, provides code location and error string. More...
#include <standard_exception.hpp>
Public Member Functions | |
const ErrorFlag & | flag () const |
Flag enumerating the type of exception thrown. More... | |
const std::string & | message () const |
StandardException (const char *loc, ErrorFlag error) | |
Default constructor for standard exceptions. More... | |
StandardException (const char *loc, ErrorFlag error, const std::string &msg) | |
StandardException (const char *loc, const StandardException &e) | |
const char * | what () const throw () |
virtual | ~StandardException () throw () |
Public Member Functions inherited from ecl::Exception | |
virtual | ~Exception () throw () |
Private Attributes | |
std::string | detailed_message |
const ErrorFlag | error_flag |
Additional Inherited Members | |
Protected Member Functions inherited from ecl::Exception | |
Exception () | |
Exception (const char *loc) | |
Protected Attributes inherited from ecl::Exception | |
std::string | location |
Standard exception type, provides code location and error string.
This exception class utilises a default set of error flags and messages defined by the ecl. They can be coupled with the ecl exception macros for throwing to also enable debug-only throws, assure-check throws as well as rethrowing.
Definition at line 54 of file standard_exception.hpp.
ecl::StandardException::StandardException | ( | const char * | loc, |
ErrorFlag | error | ||
) |
Default constructor for standard exceptions.
loc | : use with the LOC macro, identifies the line and file of the code. |
error | : enumerated exception error type. |
Definition at line 31 of file standard_exception.cpp.
ecl::StandardException::StandardException | ( | const char * | loc, |
ErrorFlag | error, | ||
const std::string & | msg | ||
) |
Constructor for standard exceptions with a custom message.
loc | : use with the LOC macro, identifies the line and file of the code. |
error | : enumerated exception error type. |
msg | : extra detail message. |
Definition at line 36 of file standard_exception.cpp.
ecl::StandardException::StandardException | ( | const char * | loc, |
const StandardException & | e | ||
) |
Constructor for standard exceptions that enables rethrowing of an existing exception up the hierarchy with a new code location stamp.
loc | : use with the LOC macro, identifies the line and file of the code. |
e | : a caught standard exception that is to be rethrown. |
Definition at line 42 of file standard_exception.cpp.
|
inlinevirtual |
Definition at line 78 of file standard_exception.hpp.
|
inline |
Flag enumerating the type of exception thrown.
Definition at line 94 of file standard_exception.hpp.
|
inline |
Detailed error message associated with the exception.
Definition at line 92 of file standard_exception.hpp.
|
virtual |
Default exception handling output function.
Implements ecl::Exception.
Definition at line 50 of file standard_exception.cpp.
|
private |
Definition at line 98 of file standard_exception.hpp.
|
private |
Definition at line 97 of file standard_exception.hpp.