Exception with customizable message.
More...
#include <Exceptions.hpp>
|
|
const std::string | message_ |
| | The message that is to be printed.
|
| |
Exception with customizable message.
Use derived classes for specific exceptions.
| GeneralException::GeneralException |
( |
| ) |
|
|
inline |
| GeneralException::GeneralException |
( |
const std::string & |
msg | ) |
|
|
inlineexplicit |
Constructor for the general exception that accepts a message to print
- Parameters
-
| [in] | msg | : the message to print before killing the execution |
| virtual GeneralException::~GeneralException |
( |
| ) |
|
| throw | ( | |
| ) | | |
|
inlinevirtual |
Destructor that throws the exception for us
| virtual const char* GeneralException::what |
( |
| ) |
const |
| throw | ( | |
| ) | | |
|
inlinevirtual |
Overloading of the what() method that outputs what the error was
- Returns
- the error
The documentation for this class was generated from the following file: