[#BloombergLP-bsls-Assert-setViolationHandler] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Assert.adoc[Assert]::setViolationHandler :relfileprefix: ../../../ :mrdocs: Make the specified violation handler `function` the current assertion‐failure handler. This method has no effect if the `lockAssertAdministration` method has been called. == Synopsis Declared in `<bsls_assert.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setViolationHandler(xref:BloombergLP/bsls/Assert/ViolationHandler-03.adoc[Assert::ViolationHandler] function); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#