SoDaRadio-5.0.3-master:8901fb5
|
The SoDa Exception class. More...
#include <SoDaBase.hxx>
Public Member Functions | |
SoDaException (const std::string &_reason, SoDaBase *obj=NULL) | |
The constructor. More... | |
SoDaException (const char *_reason, SoDaBase *obj) | |
The constructor. More... | |
std::string | toString () |
Create a string that explains this exception. More... | |
const char * | what () |
Create a string that explains this exception. More... | |
Private Attributes | |
SoDaBase * | thrower |
who caused the exception, if anyone? More... | |
std::string | reason |
what was the cause of the exception? More... | |
The SoDa Exception class.
Wherever possible, objects reporting exceptions should signal a subclass of the SoDaException class.
Definition at line 217 of file SoDaBase.hxx.
|
inline |
The constructor.
_reason | an informative string reporting the cause of the error |
obj | a pointer to the SoDaBase object that triggered the exception (if any). |
Definition at line 225 of file SoDaBase.hxx.
|
inline |
The constructor.
_reason | an informative string reporting the cause of the error |
obj | a pointer to the SoDaBase object that triggered the exception (if any). |
Definition at line 236 of file SoDaBase.hxx.
|
inline |
Create a string that explains this exception.
Definition at line 246 of file SoDaBase.hxx.
Referenced by main(), and SoDa::SoDaThread::outerRun().
|
inline |
Create a string that explains this exception.
Definition at line 262 of file SoDaBase.hxx.
|
private |
what was the cause of the exception?
Definition at line 267 of file SoDaBase.hxx.
|
private |
who caused the exception, if anyone?
Definition at line 266 of file SoDaBase.hxx.