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

Constructors

== Synopses

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

Create a `AssertTestException` object that is a copy of the specified `original`, having the same value for the `expression`, `filename`, and `lineNumber` attributes&period; Note that this constructor&apos;s definition is compiler generated&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:BloombergLP/bsls/AssertTestException/2constructor-0a.adoc[AssertTestException](xref:BloombergLP/bsls/AssertTestException.adoc[AssertTestException] const& original) = default;
----

[.small]#xref:BloombergLP/bsls/AssertTestException/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a `AssertTestException` object whose value is that of specified `original`, having the same value for the `expression`, `filename`, and `lineNumber` attributes&period; Note that this constructor&apos;s definition is compiler generated&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:BloombergLP/bsls/AssertTestException/2constructor-01.adoc[AssertTestException](xref:BloombergLP/bsls/AssertTestException.adoc[AssertTestException]&& original) = default;
----

[.small]#xref:BloombergLP/bsls/AssertTestException/2constructor-01.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/AssertTestException/2constructor-07.adoc[AssertTestException](
    char const* expression,
    char const* filename,
    int lineNumber,
    char const* level = &quot;UNKNOWN&quot;);
----

[.small]#xref:BloombergLP/bsls/AssertTestException/2constructor-07.adoc[_» more&period;&period;&period;_]#


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