[#BloombergLP-bsls-BslExceptionUtil-throwBadTypeid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/BslExceptionUtil.adoc[BslExceptionUtil]::throwBadTypeid
:relfileprefix: ../../../
:mrdocs:

Throw a `bsl&colon;&colon;bad&lowbar;typeid` exception if exceptions are enabled in the current build mode, otherwise abort the program&period; `bsl&colon;&colon;bad&lowbar;typeid` will be an alias for the platform&apos;s `std&colon;&colon;bad&lowbar;typeid` class, to ensure both ABI and API compatibility with non&hyphen;BDE code relying on the standard exception hierarchy&period;

== Synopsis

Declared in `&lt;bsls&lowbar;bslexceptionutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;noreturn&rsqb;&rsqb;
static
void
throwBadTypeid();
----

== Return Value

[NOTE]
====
This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
