Elements base exception class.
More...
#include <Exception.h>
Elements base exception class.
Definition at line 46 of file Exception.h.
◆ Exception() [1/4]
Default constructor. The message is set to the empty string.
- Parameters
-
e | this is an optional exit code. By default is is set to NOT_OK. |
Definition at line 53 of file Exception.h.
◆ Exception() [2/4]
Constructor (C strings).
- Parameters
-
message | C-style string error message. The string contents are copied upon construction. Hence, responsibility for deleting the char* lies with the caller. |
e | this is an optional exit code. By default is is set to NOT_OK. |
Definition at line 65 of file Exception.h.
◆ Exception() [3/4]
Constructor (C++ STL strings).
- Parameters
-
message | The error message. |
e | this is an optional exit code. By default is is set to NOT_OK. |
Definition at line 74 of file Exception.h.
◆ Exception() [4/4]
template<typename ... Args>
Elements::Exception::Exception |
( |
const char * |
stringFormat, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineexplicit |
Constructs a new Exception with a message using format specifiers.
- Parameters
-
stringFormat | The message containing the format specifiers |
args | The values to replace the format specifiers with |
Definition at line 85 of file Exception.h.
◆ ~Exception()
virtual Elements::Exception::~Exception |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ appendMessage()
template<typename T >
void Elements::Exception::appendMessage |
( |
const T & |
message | ) |
|
|
inline |
◆ exitCode()
ExitCode Elements::Exception::exitCode |
( |
| ) |
const |
|
inlinenoexcept |
◆ what()
const char* Elements::Exception::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ m_error_msg
◆ m_exit_code
The documentation for this class was generated from the following file: