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

Name

Description

expression

program source of the failing assertion

filename

name of the file containing the assertion

lineNumber

line number within that file of the failing assertion

level

level of the assertion that has failed

Created with MrDocs