[#BloombergLP-bsls-BslExceptionUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::BslExceptionUtil :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for `static` utility functions that throw standard library exceptions. == Synopsis Declared in `<bsls_bslexceptionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BslExceptionUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/BslExceptionUtil/throwBadAlloc.adoc[`throwBadAlloc`] [.small]#[noreturn]# | Throw a `bsl::bad_alloc` exception, or abort if exceptions are disabled. | xref:BloombergLP/bsls/BslExceptionUtil/throwBadCast.adoc[`throwBadCast`] [.small]#[noreturn]# | Throw a `bsl::bad_cast` exception, or abort if exceptions are disabled. | xref:BloombergLP/bsls/BslExceptionUtil/throwBadException.adoc[`throwBadException`] [.small]#[noreturn]# | Throw a `bsl::bad_exception` exception, or abort if exceptions are disabled. | xref:BloombergLP/bsls/BslExceptionUtil/throwBadTypeid.adoc[`throwBadTypeid`] [.small]#[noreturn]# | Throw a `bsl::bad_typeid` exception, or abort if exceptions are disabled. | xref:BloombergLP/bsls/BslExceptionUtil/throwException.adoc[`throwException`] [.small]#[noreturn]# | Throw a `bsl::exception` exception, or abort if exceptions are disabled. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#