Base class for exceptions in the SDHLibrary-CPP. More...
#include <sdhexception.h>
Public Member Functions | |
cSDHLibraryException (char const *_type, cMsg const &_msg) | |
virtual const char * | what () const throw () |
Protected Attributes | |
cMsg | msg |
The message object. More... | |
Base class for exceptions in the SDHLibrary-CPP.
At construction time a cMsg object is stored in the msg member of the cSDHLibraryException object. The cMsg object should contain a string wich further describes the actual cause of the exception thrown. The string in the cMsg object can be queried with the overloaded what() member function, just like in the std::exception class.
See the verbose description of the constructor #SDH::cSDHLibraryException::cSDHLibraryException() for examplary use.
Definition at line 132 of file sdhexception.h.
NAMESPACE_SDH_END cSDHLibraryException::cSDHLibraryException | ( | char const * | _type, |
cMsg const & | _msg | ||
) |
Constructor of sdh exception base class.
_type | - the type name of the exception. By convention this is the class name of the exception |
_msg | - a reference to a cMsg object that further describes the exception. |
Definition at line 106 of file sdhexception.cpp.
|
virtual |
Return the msg member
Definition at line 118 of file sdhexception.cpp.
|
protected |
The message object.
Definition at line 137 of file sdhexception.h.