[#BloombergLP-bsls-BslExceptionUtil-throwBadException] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/BslExceptionUtil.adoc[BslExceptionUtil]::throwBadException :relfileprefix: ../../../ :mrdocs: Throw a `bsl::bad_exception` exception if exceptions are enabled in the current build mode, otherwise abort the program. `bsl::bad_exception` will be an alias for the platform's `std::bad_exception` class, to ensure both ABI and API compatibility with non‐BDE code relying on the standard exception hierarchy. == Synopsis Declared in `<bsls_bslexceptionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] static void throwBadException(); ---- == Return Value [NOTE] ==== This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#