[#BloombergLP-bslstl-StdExceptUtil-setUnderflowErrorHook] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StdExceptUtil.adoc[StdExceptUtil]::setUnderflowErrorHook :relfileprefix: ../../../ :mrdocs: Set the pre throw hook for the specified exception type to the specified `hook`. If `hook` is passed 0, or if the settor was never called, that means that no pre‐throw function will be called. == Synopsis Declared in `<bslstl_stdexceptutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setUnderflowErrorHook(xref:BloombergLP/bslstl/StdExceptUtil/PreThrowHook.adoc[PreThrowHook] hook); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#