CLAM::ErrAssertionFailed Class Reference

The exception thrown when an assertion fails. More...

#include <Assert.hxx>

List of all members.

Public Member Functions

 ErrAssertionFailed (const char *message, const char *filename, int linenumber)
virtual ~ErrAssertionFailed () throw ()

Static Public Attributes

static bool breakpointInCLAMAssertEnabled = true
 this bool is used for automatic-tesing CLAM asserts.

Detailed Description

The exception thrown when an assertion fails.

Don't throw it directly, use the assertion macro Assert instead because the Assert macro is sensible to the compilation conditions. Neither do any explicit declaration that this exception can be thrown from a function as you would have to do with any other exception. See the Error Notification Mechanisms documentation.

Todo:
Subclass ErrAssertionFailed from Err.
See also:
CLAM_ASSERT
CLAM_BEGIN_CHECK
CLAM_END_CHECK

Definition at line 215 of file Assert.hxx.


Constructor & Destructor Documentation

CLAM::ErrAssertionFailed::ErrAssertionFailed ( const char *  message,
const char *  filename,
int  linenumber 
)

Definition at line 107 of file Assert.cxx.

References CLAM::CurrentAssertFailedHandler.

virtual CLAM::ErrAssertionFailed::~ErrAssertionFailed (  )  throw () [inline, virtual]

Definition at line 224 of file Assert.hxx.


Member Data Documentation

this bool is used for automatic-tesing CLAM asserts.

by default is defined to true. But can be set to false where we want to test that a CLAM_ASSERT has occurred.

Definition at line 221 of file Assert.hxx.


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