[#BloombergLP-bslstl-StdExceptUtil-setLengthErrorHook] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StdExceptUtil.adoc[StdExceptUtil]::setLengthErrorHook :relfileprefix: ../../../ :mrdocs: Set the pre‐throw hook for `std::length_error` to the specified `hook`. == Synopsis Declared in `<bslstl_stdexceptutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setLengthErrorHook(xref:BloombergLP/bslstl/StdExceptUtil/PreThrowHook.adoc[PreThrowHook] hook); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#