#include <Assertion.h>
Inherited by DbcException.
See also design-by-contract assertions.
Public Member Functions | |
Construction | |
| Assertion (CharCptr aReason, CharCptr aFile, int aLine) | |
| constructor. | |
| Assertion (AssertionCref rhs) | |
| copy constructor. | |
| virtual | ~Assertion () |
| destructor. | |
Operators | |
| AssertionRef | operator= (AssertionCref rhs) |
| copy assignment. | |
| bool | operator== (AssertionCref rhs) |
| test for equality. | |
Accessors | |
| virtual CharCptr | what () const |
| return a description of the assertion, as reason(). | |
| String | reason () const |
| return the assertion expression as a string. | |
| String | file () const |
| return the filename. | |
| int | line () const |
| return the linenumber. | |
Protected Attributes | |
| String | theReason |
| the expression as a string | |
| String | theFile |
| the filename | |
| int | theLine |
| the linenumber | |