[#BloombergLP-bsls-AssertTestException-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertTestException.adoc[AssertTestException]::AssertTestException
:relfileprefix: ../../../
:mrdocs:

Create an `AssertTestException` with the specified attributes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
AssertTestException(
    char const* expression,
    char const* filename,
    int lineNumber,
    char const* level = &quot;UNKNOWN&quot;);
----

== Description

Create a `AssertTestException` object with the specified `expression`, `filename`, `lineNumber`, and `level`&period; The behavior is undefined unless `0 &lt; line` and all of `expression`, `filename`, and `level` are `NULL` or point to valid null&hyphen;terminated character strings&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *expression*
| program source of the failing assertion
| *filename*
| name of the file containing the assertion
| *lineNumber*
| line number within that file of the failing assertion
| *level*
| level of the assertion that has failed
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
