![]() |
MeLOn
|
This class defines the exceptions thrown by FeedForwardNet. More...
#include <exceptions.h>
Public Member Functions | |
MelonException (const std::string &arg) | |
Constructor used for forwarding. | |
MelonException (const std::string &arg, const std::exception &e) | |
Constructor used for forwarding. | |
MelonException (const std::string &arg, const std::exception *e) | |
Constructor used printing a FeedForwardNet Exception. | |
const char * | what () const noexcept |
Function to return the error message. | |
Private Member Functions | |
MelonException () | |
Private Attributes | |
std::string | _msg { "" } |
This class defines the exceptions thrown by FeedForwardNet.
The class contains different constructors. The first parameter is always the error message. 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] | e | holds the exception |
|
inline |
Constructor used printing a FeedForwardNet Exception.
[in] | arg | is a string holding an error message |
[in] | e | holds the exception |
|
inlinenoexcept |
Function to return the error message.
|
private |
string holding the exception message