solver
1.0
|
A general exception of the program. More...
#include <Exceptions.h>
Public Member Functions | |
SolverException (const std::string &caller, const std::string &msg) | |
Constructs the exception, it comprises building of the error string and vector of lines. More... | |
virtual const char * | what () const throw () |
Virtual method returns the error message without an indentation. | |
virtual std::string | whatIndented (uint32_t level=0) const throw () |
Virtual function returning the formatted error message. More... | |
virtual | ~SolverException () throw () |
Virtual destructor is mandatory due to the polymorphism. | |
Protected Attributes | |
std::string | mWhatStr |
The formated error message without an indentation. | |
std::vector< std::string > | mWhat |
Individual lines of the error message. | |
A general exception of the program.
A general exception of the program supporting formatted output. More specialized exceptions are derived from this class.
Definition at line 58 of file Exceptions.h.
|
inline |
Constructs the exception, it comprises building of the error string and vector of lines.
caller | String representation of the method in which this exception was thrown. |
msg | Error message. Messages with multiple lines are supported. |
Definition at line 66 of file Exceptions.h.
|
inlinevirtual |
Virtual function returning the formatted error message.
level | The number of prepended tabulators. |
Definition at line 80 of file Exceptions.h.