[#BloombergLP-bsls-AssertTestException] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::AssertTestException :relfileprefix: ../../ :mrdocs: This class is an implementation detail of the `bsls` testing framework and should not be used directly in user code. It implements an immutable mechanism to communicate information about the context of an assertion that fails to a test‐case handler. == Synopsis Declared in `<bsls_asserttestexception.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class AssertTestException; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/AssertTestException/2constructor-02.adoc[`AssertTestException`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bsls/AssertTestException/2destructor.adoc[`~AssertTestException`] [.small]#[destructor]# | Destroy this object. Note that this destructor's definition is compiler generated. | xref:BloombergLP/bsls/AssertTestException/expression.adoc[`expression`] | Return a string containing the program source of the assertion that has failed. | xref:BloombergLP/bsls/AssertTestException/filename.adoc[`filename`] | Return a string containing the filename of the source file containing the assertion that has failed. | xref:BloombergLP/bsls/AssertTestException/level.adoc[`level`] | Return a string containing a representation of the level of assertion or review macro that failed. | xref:BloombergLP/bsls/AssertTestException/lineNumber.adoc[`lineNumber`] | Return the number of the line within the file `filename` containing the assertion that failed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#