An exception that keeps track of the stack when it was created.
Definition at line 15 of file VuoException.hh.
Public Member Functions | |
VuoException (const string &description, bool log=true) | |
Creates an exception with the specified description, collects the current stack trace, and optionally logs both. More... | |
~VuoException (void) throw () | |
Needed to prevent a build error. More... | |
const char * | what () const throw () |
Returns the description. More... | |
const vector< string > & | getBacktrace () |
Returns the stack trace when creating this exception. More... | |
VuoException::VuoException | ( | const string & | description, |
bool | log = true |
||
) |
Creates an exception with the specified description, collects the current stack trace, and optionally logs both.
Definition at line 22 of file VuoException.cc.
VuoException::~VuoException | ( | void | ) | ||
throw | ( | ||||
) |
const vector< string > & VuoException::getBacktrace | ( | ) |
Returns the stack trace when creating this exception.
Definition at line 84 of file VuoException.cc.
const char * VuoException::what | ( | ) | const | |
throw | ( | |||
) |
Returns the description.
Definition at line 76 of file VuoException.cc.