[#BloombergLP-bsls-AssertViolation] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::AssertViolation :relfileprefix: ../../ :mrdocs: This class is an unconstrained _in‐core_ value‐semantic class that characterizes the details of a assert failure that has occurred. == Synopsis Declared in `<bsls_assert.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class AssertViolation; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/AssertViolation/2constructor.adoc[`AssertViolation`] [.small]#[constructor]# | 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` | xref:BloombergLP/bsls/AssertViolation/assertLevel.adoc[`assertLevel`] | Return the `assertLevel` attribute of this object. | xref:BloombergLP/bsls/AssertViolation/comment.adoc[`comment`] | Return the `comment` attribute of this object. | xref:BloombergLP/bsls/AssertViolation/fileName.adoc[`fileName`] | Return the `fileName` attribute of this object. | xref:BloombergLP/bsls/AssertViolation/lineNumber.adoc[`lineNumber`] | Return the `lineNumber` attribute of this object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#