![]() |
MAiNGO
|
This class defines the exceptions thrown by BranchAndBoundBase. More...
#include <babException.h>
Public Member Functions | |
BranchAndBoundBaseException (const std::string &arg) | |
Constructor used for forwarding. More... | |
BranchAndBoundBaseException (const std::string &arg, const babBase::BabNode &node) | |
Constructor used for forwarding. More... | |
BranchAndBoundBaseException (const std::string &arg, const std::exception &e) | |
Constructor used for forwarding. More... | |
BranchAndBoundBaseException (const std::string &arg, const std::exception &e, const babBase::BabNode &node) | |
Constructor used for forwarding. More... | |
BranchAndBoundBaseException (const std::string &arg, const std::exception *e, const babBase::BabNode *node) | |
Constructor used printing a BranchAndBoundBase Exception. More... | |
const char * | what () const noexcept |
Function to return the error message. More... | |
Protected Member Functions | |
BranchAndBoundBaseException () | |
Protected Attributes | |
std::string | _msg {""} |
This class defines the exceptions thrown by BranchAndBoundBase.
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.
|
protected |
|
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 BranchAndBoundBase 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.
|
protected |
string holding the exception message