[#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 `<bsls_asserttestexception.h>` Create a `AssertTestException` object that is a copy of the specified `original`, having the same value for the `expression`, `filename`, and `lineNumber` attributes. Note that this constructor's definition is compiler generated. [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..._]# Create a `AssertTestException` object whose value is that of specified `original`, having the same value for the `expression`, `filename`, and `lineNumber` attributes. Note that this constructor's definition is compiler generated. [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..._]# Create a `AssertTestException` object with the specified `expression`, `filename`, `lineNumber`, and `level`. The behavior is undefined unless `0 < line` and all of `expression`, `filename`, and `level` are `NULL` or point to valid null‐terminated character strings. [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 = "UNKNOWN"); ---- [.small]#xref:BloombergLP/bsls/AssertTestException/2constructor-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#