Base class for every exception thrown in Ponder.
More...
#include <error.hpp>
|
virtual | ~Error () throw () |
| Destructor.
|
|
virtual const char * | what () const throw () |
| Return a description of the error. More...
|
|
virtual const char * | where () const throw () |
| Return the error location (file + line + function) More...
|
|
|
template<typename T > |
static T | prepare (T error, const String &file, int line, const String &function) |
| Prepare an error to be thrown. More...
|
|
Base class for every exception thrown in Ponder.
◆ prepare()
template<typename T >
static T ponder::Error::prepare |
( |
T |
error, |
|
|
const String & |
file, |
|
|
int |
line, |
|
|
const String & |
function |
|
) |
| |
|
static |
Prepare an error to be thrown.
This function is meant for internal use only. It adds the current context of execution (file, line and function) to the given error and returns it.
- Parameters
-
error | Error to prepare |
file | Source filename |
line | Line number in the source file |
function | Name of the function where the error was thrown |
- Returns
- Modified error, ready to be thrown
◆ what()
virtual const char* ponder::Error::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
Return a description of the error.
- Returns
- Pointer to a string containing the error message
◆ where()
virtual const char* ponder::Error::where |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
Return the error location (file + line + function)
- Returns
- String containing the error location
The documentation for this class was generated from the following file: