CLAM-Development
1.4.0
|
The exception thrown when an assertion fails. More...
#include <Assert.hxx>
Public Member Functions | |
ErrAssertionFailed (const char *message, const char *filename, int linenumber) | |
virtual | ~ErrAssertionFailed () throw () |
![]() | |
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 () |
Static Public Attributes | |
static bool | breakpointInCLAMAssertEnabled = true |
this bool is used for automatic-tesing CLAM asserts. |
Additional Inherited Members | |
![]() | |
char * | mMsg |
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.
Definition at line 215 of file Assert.hxx.
CLAM::ErrAssertionFailed::ErrAssertionFailed | ( | const char * | message, |
const char * | filename, | ||
int | linenumber | ||
) |
Definition at line 120 of file Assert.cxx.
References breakpointInCLAMAssertEnabled, and CLAM::CurrentAssertFailedHandler.
|
inlinevirtual |
Definition at line 224 of file Assert.hxx.
|
static |
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().