CLAM::Err Class Reference

Base class for the exception handling classes. More...

#include <Err.hxx>

List of all members.

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


Detailed Description

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.


Constructor & Destructor Documentation

CLAM::Err::Err (  )  throw ()

Definition at line 30 of file Err.cxx.

References mMsg.

CLAM::Err::Err ( const char *  msg  )  throw ()

Definition at line 36 of file Err.cxx.

CLAM::Err::Err ( const Err orig  )  throw ()

Definition at line 43 of file Err.cxx.

CLAM::Err::~Err (  )  throw () [virtual]

Definition at line 50 of file Err.cxx.

References mMsg.


Member Function Documentation

void CLAM::Err::Embed ( const char *  str  )  throw ()

Definition at line 72 of file Err.cxx.

void CLAM::Err::Embed ( const std::exception &  e  )  throw ()

void CLAM::Err::Print ( void   )  const throw ()

Definition at line 57 of file Err.cxx.

References mMsg.

virtual const char* CLAM::Err::what (  )  const throw () [inline, virtual]


Member Data Documentation

char* CLAM::Err::mMsg [protected]


The documentation for this class was generated from the following files:

Generated on Tue Feb 22 09:53:28 2011 for CLAM-Development by  doxygen 1.5.9