This struct provides a namespace for static utility functions that throw standard library exceptions.
Declared in <bslstl_stdexceptutil.h>
struct StdExceptUtil;
| Name | Description |
|---|---|
PreThrowHook | Alias for the pre-throw hook function pointer type. |
| Name | Description |
|---|---|
logCheapStackTrace | Log a warning with a cheap stack trace before an exception is thrown. |
setDomainErrorHook | Set the pre-throw hook for std::domain_error to the specified hook. |
setInvalidArgumentHook | Set the pre-throw hook for std::invalid_argument to the specified hook. |
setLengthErrorHook | Set the pre-throw hook for std::length_error to the specified hook. |
setLogicErrorHook | Set the pre-throw hook for std::logic_error to the specified hook. |
setOutOfRangeHook | Set the pre-throw hook for std::out_of_range to the specified hook. |
setOverflowErrorHook | Set the pre-throw hook for std::overflow_error to the specified hook. |
setRangeErrorHook | Set the pre-throw hook for std::range_error to the specified hook. |
setRuntimeErrorHook | Set the pre-throw hook for std::runtime_error to the specified hook. |
setUnderflowErrorHook | Set the pre-throw hook for std::underflow_error to the specified hook. |
throwDomainError [noreturn] | Throw a std::domain_error exception supplying the specified message as the sole argument to its constructor. |
throwInvalidArgument [noreturn] | Throw a std::invalid_argument exception supplying the specified message as the sole argument to its constructor. |
throwLengthError [noreturn] | Throw a std::length_error exception supplying the specified message as the sole argument to its constructor. |
throwLogicError [noreturn] | Throw a std::logic_error exception supplying the specified message as the sole argument to its constructor. |
throwOutOfRange [noreturn] | Throw a std::out_of_range exception supplying the specified message as the sole argument to its constructor. |
throwOverflowError [noreturn] | Throw a std::overflow_error exception supplying the specified message as the sole argument to its constructor. |
throwRangeError [noreturn] | Throw a std::range_error exception supplying the specified message as the sole argument to its constructor. |
throwRuntimeError [noreturn] | Throw a std::runtime_error exception supplying the specified message as the sole argument to its constructor. |
throwUnderflowError [noreturn] | Throw a std::underflow_error exception supplying the specified message as the sole argument to its constructor. |