libstdc++
|
. More...
. More...
dynamic_cast
expression, an instance of this class (or something derived from this class) is thrown. More...typeid
expression is used.
. More...
shared_ptr
.
. More...
. More...
Classes and functions for reporting errors via exception classes.
typedef void(* std::terminate_handler)() |
typedef void(* std::unexpected_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.
exception_ptr std::copy_exception | ( | _Ex | __ex | ) |
Obtain an exception_ptr pointing to a copy of the supplied object.
Definition at line 167 of file exception_ptr.h.
References std::current_exception().
exception_ptr std::current_exception | ( | ) |
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::copy_exception().
exception_ptr std::make_exception_ptr | ( | _Ex | __ex | ) |
Obtain an exception_ptr pointing to a copy of the supplied object.
Definition at line 186 of file exception_ptr.h.
void std::rethrow_exception | ( | exception_ptr | ) |
Throw the object pointed to by the exception_ptr.
void std::rethrow_if_nested | ( | const _Ex & | __ex | ) | [inline] |
If __ex
is derived from nested_exception, __ex.rethrow_nested()
.
Definition at line 146 of file nested_exception.h.
void std::rethrow_if_nested | ( | const nested_exception & | __ex | ) | [inline] |
Overload, See N2619.
Definition at line 154 of file nested_exception.h.
terminate_handler std::set_terminate | ( | terminate_handler | ) |
Takes a new handler function as an argument, returns the old function.
unexpected_handler std::set_unexpected | ( | unexpected_handler | ) |
Takes a new handler function as an argument, returns the old function.
void std::terminate | ( | ) |
The runtime will call this function if exception handling must be abandoned for any reason. It can also be called by the user.
void std::throw_with_nested | ( | _Ex | __ex | ) | [inline] |
If __ex
is derived from nested_exception, __ex
. Else, an implementation-defined object derived from both.
Definition at line 136 of file nested_exception.h.
bool std::uncaught_exception | ( | ) |
[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).'
Referenced by std::basic_ostream< _CharT, _Traits >::sentry::~sentry().
void std::unexpected | ( | ) |
The runtime will call this function if an exception is thrown which violates the function's exception specification.