BloombergLP::bsls::AssertViolation::AssertViolation

Create an AssertViolation with the specified attributes.

Synopsis

Declared in <bsls_assert.h>

constexpr
AssertViolation(
    char const* comment,
    char const* fileName,
    int lineNumber,
    char const* assertLevel);

Description

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.

Parameters

NameDescription
commentexpression text associated with the violation
fileNamename of the file where the violation occurred
lineNumberline number where the violation occurred
assertLevellevel string identifying the assertion macro