The base exception class to derive Utopia-specific exceptions from.
More...
#include <exceptions.hh>
|
| Exception (const std::string &what_arg, const int exit_code_arg=1) |
| Construct an Utopia-specific exception. More...
|
|
| Exception (const char *what_arg, const int exit_code_arg=1) |
| Construct an Utopia-specific exception. More...
|
|
|
const int | exit_code |
| The exit code to use when exiting due to this exception. More...
|
|
The base exception class to derive Utopia-specific exceptions from.
◆ Exception() [1/2]
Utopia::Exception::Exception |
( |
const std::string & |
what_arg, |
|
|
const int |
exit_code_arg = 1 |
|
) |
| |
|
inlineexplicit |
Construct an Utopia-specific exception.
- Parameters
-
what_arg | The std::runtime_error what argument |
exit_code | The code that can (and should) be used in case this exceptions leads to exiting of the program. It is accessible via the exit_code member. |
◆ Exception() [2/2]
Utopia::Exception::Exception |
( |
const char * |
what_arg, |
|
|
const int |
exit_code_arg = 1 |
|
) |
| |
|
inlineexplicit |
Construct an Utopia-specific exception.
- Parameters
-
what_arg | The std::runtime_error what argument |
exit_code | The code that can (and should) be used in case this exceptions leads to exiting of the program. It is accessible via the exit_code member. |
◆ exit_code
const int Utopia::Exception::exit_code |
The exit code to use when exiting due to this exception.
The documentation for this class was generated from the following file: