#include <Exception.h>
Definition at line 41 of file Exception.h.
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 48 of file Exception.h.
References Elements::Units::e.
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 60 of file Exception.h.
References Elements::Units::e.
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 69 of file Exception.h.
References Elements::Units::e.
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 80 of file Exception.h.
virtual Elements::Exception::~Exception |
( |
| ) |
|
|
virtualdefaultnoexcept |
template<typename T >
void Elements::Exception::appendMessage |
( |
const T & |
message | ) |
|
|
inline |
ExitCode Elements::Exception::exitCode |
( |
| ) |
const |
|
inlinenoexcept |
Elements::Exception::snprintf |
( |
message |
, |
|
|
len |
, |
|
|
stringFormat |
, |
|
|
std::forward< Args >(args) |
... |
|
) |
| |
const char* Elements::Exception::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Elements::Exception::code |
Initial value:{
size_t len =
snprintf(NULL, 0, stringFormat, std::forward<Args>(args)...)+1
Definition at line 81 of file Exception.h.
char* Elements::Exception::message = new char[len] |
delete [] Elements::Exception::message |
The documentation for this class was generated from the following file: