[#BloombergLP-bsls-AssertViolation-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertViolation.adoc[AssertViolation]::AssertViolation :relfileprefix: ../../../ :mrdocs: Create an `AssertViolation` with the specified attributes. == Synopsis Declared in `<bsls_assert.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#