libstdc++
|
Classes | |
class | __cxxabiv1::__forced_unwind |
struct | __gnu_cxx::forced_error |
class | std::__exception_ptr::exception_ptr |
class | std::bad_alloc |
class | std::bad_cast |
class | std::bad_exception |
class | std::bad_function_call |
class | std::bad_typeid |
class | std::bad_weak_ptr |
class | std::domain_error |
class | std::exception |
class | std::experimental::fundamentals_v1::bad_any_cast |
class | std::experimental::fundamentals_v1::bad_optional_access |
class | std::future_error |
class | std::invalid_argument |
class | std::ios_base::failure |
class | std::length_error |
class | std::logic_error |
class | std::nested_exception |
class | std::out_of_range |
class | std::overflow_error |
class | std::range_error |
class | std::regex_error |
class | std::runtime_error |
class | std::system_error |
class | std::underflow_error |
Macros | |
#define | __cpp_lib_uncaught_exceptions |
Typedefs | |
template<typename _Tp > | |
using | std::__rethrow_if_nested_cond = typename enable_if< __and_< is_polymorphic< _Tp >, __or_< __not_< is_base_of< nested_exception, _Tp > >, is_convertible< _Tp *, nested_exception * > > >::value >::type |
typedef void(* | std::terminate_handler) () |
typedef void(* | std::unexpected_handler) () |
Friends | |
bool | std::__exception_ptr::exception_ptr::operator== (const exception_ptr &, const exception_ptr &) noexcept __attribute__((__pure__)) |
exception_ptr | std::__exception_ptr::exception_ptr::std::current_exception () noexcept |
void | std::__exception_ptr::exception_ptr::std::rethrow_exception (exception_ptr) |
Classes and functions for reporting errors via exception classes.
using std::__rethrow_if_nested_cond = typedef typename enable_if< __and_<is_polymorphic<_Tp>, __or_<__not_<is_base_of<nested_exception, _Tp> >, is_convertible<_Tp*, nested_exception*> >>::value >::type |
Definition at line 132 of file nested_exception.h.
|
inlineexplicit |
Definition at line 92 of file nested_exception.h.
|
inlineexplicit |
Definition at line 88 of file nested_exception.h.
|
inlinenoexcept |
Definition at line 103 of file exception_ptr.h.
|
inlinenoexcept |
Definition at line 99 of file exception_ptr.h.
Takes a character string describing the error.
|
inlinenoexcept |
Definition at line 63 of file nested_exception.h.
Takes a character string describing the error.
Definition at line 141 of file nested_exception.h.
Definition at line 149 of file nested_exception.h.
|
inline |
Definition at line 110 of file nested_exception.h.
Definition at line 102 of file nested_exception.h.
void __gnu_cxx::__verbose_terminate_handler | ( | ) |
A replacement for the standard terminate_handler which prints more information about the terminating exception (if any) on stderr.
Call
to use. For more info, see http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt02ch06s02.html
In 3.4 and later, this is on by default.
|
noexcept |
Obtain an exception_ptr pointing to a copy of the supplied object. This function is deprecated, use std::make_exception_ptr instead.
Definition at line 199 of file exception_ptr.h.
|
noexcept |
Obtain an exception_ptr to the currently handled exception. If there is none, or the currently handled exception is foreign, return the null value.
Referenced by std::make_exception_ptr().
|
noexcept |
Return the current terminate handler.
|
noexcept |
Return the current unexpected handler.
|
noexcept |
Obtain an exception_ptr pointing to a copy of the supplied object.
Definition at line 173 of file exception_ptr.h.
References std::current_exception().
|
inlinenoexcept |
Definition at line 81 of file nested_exception.h.
|
inlineexplicit |
Definition at line 142 of file exception_ptr.h.
|
inlinenoexcept |
Definition at line 120 of file exception_ptr.h.
void std::rethrow_exception | ( | exception_ptr | ) |
Throw the object pointed to by the exception_ptr.
References std::rethrow_exception().
Referenced by std::rethrow_exception().
If __ex
is derived from nested_exception, __ex.rethrow_nested()
.
Definition at line 155 of file nested_exception.h.
References std::__addressof().
|
inline |
Definition at line 73 of file nested_exception.h.
|
noexcept |
Takes a new handler function as an argument, returns the old function.
|
noexcept |
Takes a new handler function as an argument, returns the old function.
|
inline |
Definition at line 164 of file exception_ptr.h.
|
noexcept |
The runtime will call this function if exception handling must be abandoned for any reason. It can also be called by the user.
If __t
is derived from nested_exception, throws __t
. Else, throws an implementation-defined object derived from both.
Definition at line 118 of file nested_exception.h.
|
noexcept |
[18.6.4]/1: 'Returns true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected()
due to the throw; or after entering terminate()
for any reason other than an explicit call to terminate()
. [Note: This includes stack unwinding [15.2]. end note]'
2: 'When uncaught_exception()
is true, throwing an exception can result in a call of terminate()
(15.5.1).'
|
noexcept |
The number of uncaught exceptions.
void std::unexpected | ( | ) |
The runtime will call this function if an exception is thrown which violates the function's exception specification.
Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).
Reimplemented from std::exception.
Reimplemented in std::future_error.
Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).
Reimplemented from std::exception.
Returns a C-style character string describing the general cause of the current error.
Reimplemented in std::ios_base::failure, std::bad_alloc, std::logic_error, std::runtime_error, std::bad_exception, std::bad_weak_ptr, std::experimental::fundamentals_v1::bad_any_cast, std::bad_function_call, std::future_error, std::bad_cast, and std::bad_typeid.
Returns a C-style character string describing the general cause of the current error.
Reimplemented from std::exception.