[#BloombergLP-bsls-Assert-failThrow]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Assert.adoc[Assert]::failThrow
:relfileprefix: ../../../
:mrdocs:

*DEPRECATED*&colon; Use `failByThrow` instead&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;noreturn&rsqb;&rsqb;
static
void
failThrow(
    char const* comment,
    char const* file,
    int line);
----

== Description

Throw an `AssertTestException` whose attributes are the specified `comemnt`, `file`, `line`, and `level` provided that `BDE&lowbar;BUILD&lowbar;TARGET&lowbar;EXC` is defined&semi; otherwise, log an appropriate message and abort the program (similar to `failAbort`)&period;

== Return Value

[NOTE]
====
This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^].
====

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