Standard base exception class with some useful output information.
More...
#include <Exception.h>
|
std::string | category_ |
| the category of this exception
|
|
std::string | message_ |
| the error message to print with this exception
|
|
std::string | stack_trace_ |
| the stored stack trace at the throw point (if created)
|
|
Standard base exception class with some useful output information.
This is the Exception calss that the executable expects and can print easily.
◆ Exception() [1/2]
fire::Exception::Exception |
( |
| ) |
|
|
inlinenoexcept |
Empty constructor.
Don't build stack trace for empty exceptions.
◆ Exception() [2/2]
Class constructor.
Here is where the category of this exception and its message are defined. The user is also given the option to turn off the building of the stack trace.
- Parameters
-
[in] | cat | category of this exception |
[in] | message | message describing the exception. |
[in] | build_trace | true if we want the stack trace to be built |
◆ category()
const std::string & fire::Exception::category |
( |
| ) |
const |
|
inlinenoexcept |
get the category of this exception
- Returns
- the category for this exception
◆ message()
Get the message of the exception.
- Returns
- The message of the exception.
◆ trace()
Get the stack trace.
The stack trace is only built if the build_trace argument to the constructor was true, so this might return an empty string.
- Returns
- stack trace in the form of a string
◆ what()
virtual const char * fire::Exception::what |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
The error message.
- Returns
- The error message.
The documentation for this class was generated from the following files: