CLAM::ErrAssertionFailed Class Reference

#include <Assert.hxx>

Inheritance diagram for CLAM::ErrAssertionFailed:

CLAM::Err exception

List of all members.


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.


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.

Constructor & Destructor Documentation

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

Definition at line 94 of file Assert.cxx.

References breakpointInCLAMAssertEnabled, and 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.

Referenced by ErrAssertionFailed().


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

Generated on Tue Aug 12 22:33:47 2008 for CLAM by  doxygen 1.5.5