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
Name |
Description |
comment |
expression text associated with the violation |
fileName |
name of the file where the violation occurred |
lineNumber |
line number where the violation occurred |
assertLevel |
level string identifying the assertion macro |
Created with MrDocs