![]() |
MAiNGO
|
This class defines the exceptions thrown by MAiNGO. More...
#include <exceptions.h>
Public Member Functions | |
MAiNGOException (const std::string &arg) | |
Constructor used for forwarding. More... | |
MAiNGOException (const std::string &arg, const babBase::BabNode &node) | |
Constructor used for forwarding. More... | |
MAiNGOException (const std::string &arg, const std::exception &e) | |
Constructor used for forwarding. More... | |
MAiNGOException (const std::string &arg, const std::exception &e, const babBase::BabNode &node) | |
Constructor used for forwarding. More... | |
MAiNGOException (const std::string &arg, const std::exception *e, const babBase::BabNode *node) | |
Constructor used printing a MAiNGO Exception. More... | |
const char * | what () const noexcept |
Function to return the error message. More... | |
Private Member Functions | |
MAiNGOException () | |
Private Attributes | |
std::string | _msg {""} |
This class defines the exceptions thrown by MAiNGO.
The class contains different constructors. The first parameter is always the error message. For debugging, the error message will also contain the file name and line number Additionally, the constructor can take an exception as second argument. If done so, the type of the exception object and its what() will be saved in the error message as well.
|
private |
|
inlineexplicit |
Constructor used for forwarding.
[in] | arg | is a string holding an error message |
|
inline |
Constructor used for forwarding.
[in] | arg | is a string holding an error message |
[in] | node | holds the current BabNode |
|
inline |
Constructor used for forwarding.
[in] | arg | is a string holding an error message |
[in] | e | holds the exception |
|
inline |
Constructor used for forwarding.
[in] | arg | is a string holding an error message |
[in] | e | holds the exception |
[in] | node | holds the current BabNode |
|
inline |
Constructor used printing a MAiNGO Exception.
[in] | arg | is a string holding an error message |
[in] | e | holds the exception |
[in] | node | holds the current BabNode |
|
inlinenoexcept |
Function to return the error message.
|
private |
string holding the exception message