#include <Assert.h>
Inherits std::exception.
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. |
Definition at line 37 of file Assert.h.
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.
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.
const char* Assertion::what | ( | ) | const throw () |
Override the msg of this exception to describe the assertion failure.