Assertion Class Reference

This exception is thrown when an assertion fails. More...

#include <Assert.h>

Inherits std::exception.

List of all members.

Public Member Functions

 Assertion (const char *expr, const char *file, unsigned int line, const char *func, const char *pretty_func)
 Constructs an assertion with the specified attributes.
 ~Assertion () throw ()
 Destructor, a noop.
const char * what () const throw ()
 Override the msg of this exception to describe the assertion failure.


Detailed Description

This exception is thrown when an assertion fails.

Definition at line 37 of file Assert.h.


Constructor & Destructor Documentation

Assertion::Assertion ( const char *  expr,
const char *  file,
unsigned int  line,
const char *  func,
const char *  pretty_func 
)

Constructs an assertion with the specified attributes.

Parameters:
expr The expression of the assertion that failed.
file The file in which the assertion failed.
line The line in which the assertion failed.
func The function in which the assertion failed.
pretty_func A 'pretty' name of the function in which the assertion failed.

Assertion::~Assertion (  )  throw ()

Destructor, a noop.


Member Function Documentation

const char* Assertion::what (  )  const throw ()

Override the msg of this exception to describe the assertion failure.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo