Base class for the exception handling classes. More...
#include <Err.hxx>
Public Member Functions | |
Err () throw () | |
Err (const char *msg) throw () | |
Err (const Err &) throw () | |
virtual | ~Err () throw () |
void | Print (void) const throw () |
virtual const char * | what () const throw () |
void | Embed (const std::exception &) throw () |
void | Embed (const char *str) throw () |
Protected Attributes | |
char * | mMsg |
Base class for the exception handling classes.
Exception handling allows code that has encountered a condition it cannot cope with to return to other code, avoiding crashes by switching to the writing of error messages, managed by tbis base class.
If the call invokes the overloaded constructor, then messages can be defined either directly within the code invoking Err or in the derived class (error regarding typically formats, memory or file openings).
If the call invokes the default constructor, then the message is set to "Unknown error"
One member function : Print One data member : mMsg
Definition at line 48 of file Err.hxx.
void CLAM::Err::Embed | ( | const std::exception & | e | ) | throw () |
Definition at line 63 of file Err.cxx.
Referenced by CLAM::MIDIOut::ConcreteConfigure(), CLAM::MIDIIn::ConcreteConfigure(), and CLAM::MIDIClocker::ConcreteConfigure().
virtual const char* CLAM::Err::what | ( | ) | const throw () [inline, virtual] |
Reimplemented in CLAM::XmlStorageErr.
Definition at line 61 of file Err.hxx.
References mMsg.
Referenced by CLAM::Processing::BackendBufferSize(), and CLAM::SDIFOut::ConcreteStart().
char* CLAM::Err::mMsg [protected] |