[#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&period;

== Synopsis

Declared in `&lt;bsls&lowbar;assert&period;h&gt;`

[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`&period; Note that the supplied `assertLevel` will usually be one of the `k&lowbar;LEVEL` constants defined in `bsls&colon;&colon;Assert`&period;

== 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]#
