Quick Links: |
#include <bsls_assert.h>
Public Member Functions | |
BSLS_KEYWORD_CONSTEXPR | AssertViolation (const char *comment, const char *fileName, int lineNumber, const char *assertLevel) |
const char * | assertLevel () const |
const char * | comment () const |
const char * | fileName () const |
int | lineNumber () const |
This class is an unconstrained in-core value-semantic class that characterizes the details of a assert failure that has occurred.
BSLS_KEYWORD_CONSTEXPR bsls::AssertViolation::AssertViolation | ( | const char * | comment, | |
const char * | fileName, | |||
int | lineNumber, | |||
const char * | assertLevel | |||
) |
Create a AssertViolation
with the specified comment
, fileName
, lineNumber
, and assertLevel
. Note that the supplied assertLevel
will usually be one of the k_LEVEL
constants defined in bsls::Assert
const char* bsls::AssertViolation::assertLevel | ( | ) | const |
Return the assertLevel
attribute of this object.
const char* bsls::AssertViolation::comment | ( | ) | const |
Return the comment
attribute of this object.
const char* bsls::AssertViolation::fileName | ( | ) | const |
Return the fileName
attribute of this object.
int bsls::AssertViolation::lineNumber | ( | ) | const |
Return the lineNumber
attribute of this object.