This struct provides a namespace for static utility functions that throw standard library exceptions.

Synopsis

Declared in <bsls_bslexceptionutil.h>

struct BslExceptionUtil;

Static Member Functions

Name

Description

throwBadAlloc [noreturn]

Throw a bsl::bad_alloc exception if exceptions are enabled in the current build mode, otherwise abort the program. bsl::bad_alloc will be an alias for the platform's std::bad_alloc class, to ensure both ABI and API compatibility with non‐BDE code relying on the standard exception hierarchy.

throwBadCast [noreturn]

Throw a bsl::bad_cast exception if exceptions are enabled in the current build mode, otherwise abort the program. bsl::bad_cast will be an alias for the platform's std::bad_cast class, to ensure both ABI and API compatibility with non‐BDE code relying on the standard exception hierarchy.

throwBadException [noreturn]

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.

throwBadTypeid [noreturn]

Throw a bsl::bad_typeid exception if exceptions are enabled in the current build mode, otherwise abort the program. bsl::bad_typeid will be an alias for the platform's std::bad_typeid class, to ensure both ABI and API compatibility with non‐BDE code relying on the standard exception hierarchy.

throwException [noreturn]

Throw a bsl::exception exception if exceptions are enabled in the current build mode, otherwise abort the program. bsl::exception will be an alias for the platform's std::exception class, to ensure both ABI and API compatibility with non‐BDE code relying on the standard exception hierarchy.

Created with MrDocs