Generic exception carrying a fe::String payload.
More...
#include <Exception.h>
Inherits exception.
Inherited by fe::BaseAccessor::Exception.
|
| Exception (const char *fmt,...) throw () |
|
| Exception (const char *location, const char *fmt,...) throw () |
|
| Exception (const Result &result, const char *fmt,...) throw () |
|
| Exception (const Result &result, const char *location, const char *fmt,...) throw () |
|
| Exception (const Result &result, const char *location, String fmt,...) throw () |
|
| Exception (const Result &result) throw () |
|
| Exception (const Exception &other) throw () |
|
virtual const char * | what (void) const throw () |
|
Exception & | operator= (const Exception &other) throw () |
|
const String & | getMessage (void) const throw () |
| Return the fe::String payload. More...
|
|
const String & | getLocation (void) const throw () |
|
const String & | getFile (void) const throw () |
|
const String & | getFunction (void) const throw () |
|
const String & | getStack (void) const throw () |
|
Result | getResult (void) const throw () |
|
int | getLine (void) const throw () |
|
void | log (void) throw () |
| Send the message to the global log. More...
|
|
virtual void | checkAssert (void) throw () |
| Assert instead of except, if selected. More...
|
|
|
static void | stage (const char *file, int line, const char *function) |
| Not thread safe, so exceptions thrown from multiple threads are in a race condition on file and line. More...
|
|
|
static String | ms_file = "" |
|
static int | ms_line = 0 |
|
static String | ms_function = "" |
|
Generic exception carrying a fe::String payload.
◆ checkAssert()
void fe::Exception::checkAssert |
( |
void |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
Assert instead of except, if selected.
If the env variable "FE_E_ASSERT" is set, exceptions cause an assertion when they create. They don't have to be thrown first.
◆ getMessage()
const String& fe::Exception::getMessage |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ log()
void fe::Exception::log |
( |
void |
| ) |
|
throw | ( | |
| ) | | |
Send the message to the global log.
◆ stage()
static void fe::Exception::stage |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function |
|
) |
| |
|
inlinestatic |
Not thread safe, so exceptions thrown from multiple threads are in a race condition on file and line.
The documentation for this class was generated from the following files: