[#BloombergLP-bslstl-StdExceptUtil-PreThrowHook]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StdExceptUtil.adoc[StdExceptUtil]::PreThrowHook
:relfileprefix: ../../../
:mrdocs:

This is the type of function pointer that can be set&period; One such static function pointer exists for each exception type supported by this component&period; Functions called to throw exceptions examine their respective pointer, and if it&apos;s non&hyphen;null, call it and then throw after it returns&period; Note that it is recommended that the hook function log a greppable statement such as &quot;About to throw &lt;exceptionName&gt;&quot;&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stdexceptutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef void(* PreThrowHook)(char const*, char const*);
----


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