Elements base exception class.
More...
#include <Exception.h>
Elements base exception class.
Definition at line 44 of file Exception.h.
◆ Exception() [1/5]
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 27 of file Exception.cpp.
◆ Exception() [2/5]
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 29 of file Exception.cpp.
◆ Exception() [3/5]
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 31 of file Exception.cpp.
◆ Exception() [4/5]
template<typename... Args>
Elements::Exception::Exception |
( |
const char * | string_format, |
|
|
Args &&... | args ) |
|
explicit |
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 |
◆ Exception() [5/5]
Elements::Exception::Exception |
( |
const Exception & | rhs | ) |
|
|
default |
Explicit default copy constructor
◆ ~Exception()
Elements::Exception::~Exception |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ appendMessage()
template<typename T >
void Elements::Exception::appendMessage |
( |
const T & | message | ) |
|
Appends in the end of the exception message the parameter.
The passed parameters can be of any type the << operator of the std::stringstream can handle.
- Parameters
-
message | The message to append |
◆ exitCode()
ExitCode Elements::Exception::exitCode |
( |
| ) |
const |
|
noexcept |
◆ what()
const char * Elements::Exception::what |
( |
| ) |
const |
|
overridenoexcept |
◆ m_error_msg
◆ m_exit_code
The documentation for this class was generated from the following files: