Public Member Functions | |
Exception (unsigned srcline, const char *srcfile, const std::string &message) | |
Constructs an exception. | |
virtual | ~Exception () throw () |
Destroys the exception. | |
virtual std::string | getMessage () const |
Returns the exception description. | |
unsigned | getSrcLine () const |
Returns the source line where the exception occured. | |
std::string | getSrcFile () const |
Returns the source file name where the exception occured. |
The main purpose of such exceptions is to provide information about the location and the cause of failed actions.
Definition at line 46 of file exception.h.
l4snd::Exception::Exception | ( | unsigned | srcline, | |
const char * | srcfile, | |||
const std::string & | message | |||
) |
Constructs an exception.
srcline | the line in the sourcefile | |
srcfile | the name of the sourcefile | |
message | a human readable description about the cause |
Definition at line 40 of file exception.cpp.
l4snd::Exception::~Exception | ( | ) | throw () [virtual] |
Destroys the exception.
Mainly here to enforce virtual destructors.
Definition at line 56 of file exception.cpp.
std::string l4snd::Exception::getMessage | ( | ) | const [virtual] |
unsigned l4snd::Exception::getSrcLine | ( | ) | const |
Returns the source line where the exception occured.
Definition at line 78 of file exception.cpp.
std::string l4snd::Exception::getSrcFile | ( | ) | const |
Returns the source file name where the exception occured.
Definition at line 84 of file exception.cpp.