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 26 of file Err.cxx.

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

Definition at line 32 of file Err.cxx.

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

Definition at line 39 of file Err.cxx.

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

Definition at line 46 of file Err.cxx.


Member Function Documentation

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

Definition at line 68 of file Err.cxx.

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

Definition at line 53 of file Err.cxx.

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().


Member Data Documentation

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

Definition at line 51 of file Err.hxx.

Referenced by what().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3