![]() |
SoDaRadio-12.2.0-cut_dependencies:6c82803
|
The SoDa::SDR Exception class (to distinguish it from the SoDaLibrary SoDa::Exception class. More...
#include <SoDaBase.hxx>
Public Member Functions | |
| Exception (const std::string &_reason, BasePtr obj=NULL) | |
| The constructor. | |
| Exception (const char *_reason, BasePtr obj) | |
| The constructor. | |
| Exception (const SoDa::Format &_reason, BasePtr obj) | |
| The constructor. | |
| const std::string & | toString () |
| Create a string that explains this exception. | |
| const char * | what () |
| Create a string that explains this exception. | |
Private Attributes | |
| BasePtr | thrower |
| who caused the exception, if anyone? | |
| std::string | reason |
| what was the cause of the exception? | |
| std::string | message |
| the reason together with the owner. | |
The SoDa::SDR Exception class (to distinguish it from the SoDaLibrary SoDa::Exception class.
Dammit.
Wherever possible, objects reporting exceptions should signal a subclass of the SoDa::Exception class.
Definition at line 166 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 174 of file SoDaBase.hxx.
References reason, and thrower.
Referenced by SoDa::MissingMailBox::MissingMailBox().
|
inline |
The constructor.
| _reason | an informative string reporting the cause of the error |
| obj | a pointer to the SoDa::Base object that triggered the exception (if any). |
Definition at line 185 of file SoDaBase.hxx.
|
inline |
The constructor.
| _reason | a SoDa::Format object with an explanation of the error |
| obj | a pointer to the SoDa::Base object that triggered the exception (if any). |
Definition at line 196 of file SoDaBase.hxx.
|
inline |
|
inline |
Create a string that explains this exception.
Definition at line 225 of file SoDaBase.hxx.
References message, and toString().
|
private |
the reason together with the owner.
Definition at line 233 of file SoDaBase.hxx.
Referenced by toString(), and what().
|
private |
what was the cause of the exception?
Definition at line 231 of file SoDaBase.hxx.
Referenced by Exception(), Exception(), Exception(), and toString().
|
private |
who caused the exception, if anyone?
Definition at line 230 of file SoDaBase.hxx.
Referenced by Exception(), Exception(), Exception(), SoDa::MissingMailBox::MissingMailBox(), and toString().