BDE 4.14.0 Production release
|
#include <bsls_bslexceptionutil.h>
Static Public Member Functions | |
static BSLS_ANNOTATION_NORETURN void | throwBadAlloc () |
static BSLS_ANNOTATION_NORETURN void | throwBadCast () |
static BSLS_ANNOTATION_NORETURN void | throwBadException () |
static BSLS_ANNOTATION_NORETURN void | throwBadTypeid () |
static BSLS_ANNOTATION_NORETURN void | throwException () |
This struct
provides a namespace for static
utility functions that throw standard library exceptions.
|
static |
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.
|
static |
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.
|
static |
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.
|
static |
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.
|
static |
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.