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

Make the specified handler `function` the current assertion&hyphen;failure handler&period; This method has no effect if the `lockAssertAdministration` method has been called&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
setFailureHandler(xref:BloombergLP/bsls/Assert/Handler.adoc[Assert::Handler] function);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *function*
| legacy failure handler to install
|===


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