BloombergLP::bsls::AssertTestException::AssertTestException

Create an AssertTestException with the specified attributes.

Synopsis

Declared in <bsls_asserttestexception.h>

AssertTestException(
    char const* expression,
    char const* filename,
    int lineNumber,
    char const* level = "UNKNOWN");

Description

Create a AssertTestException object with the specified expression, filename, lineNumber, and level. The behavior is undefined unless 0 < line and all of expression, filename, and level are NULL or point to valid null-terminated character strings.

Parameters

NameDescription
expressionprogram source of the failing assertion
filenamename of the file containing the assertion
lineNumberline number within that file of the failing assertion
levellevel of the assertion that has failed