BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls::BslExceptionUtil Struct Reference

#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 ()
 

Detailed Description

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

Member Function Documentation

◆ throwBadAlloc()

static BSLS_ANNOTATION_NORETURN void bsls::BslExceptionUtil::throwBadAlloc ( )
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.

◆ throwBadCast()

static BSLS_ANNOTATION_NORETURN void bsls::BslExceptionUtil::throwBadCast ( )
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.

◆ throwBadException()

static BSLS_ANNOTATION_NORETURN void bsls::BslExceptionUtil::throwBadException ( )
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.

◆ throwBadTypeid()

static BSLS_ANNOTATION_NORETURN void bsls::BslExceptionUtil::throwBadTypeid ( )
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.

◆ throwException()

static BSLS_ANNOTATION_NORETURN void bsls::BslExceptionUtil::throwException ( )
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.


The documentation for this struct was generated from the following file: