Difference between revisions of "cpp/error/nested exception"
From cppreference.com
(→Member functions: fix links) |
(example moved to template) |
||
Line 16: | Line 16: | ||
{{dcl list end}} | {{dcl list end}} | ||
− | + | {{cpp/error/exception/nested_exception_example}} | |
− | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | // | + | |
− | / | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | |
===See also=== | ===See also=== |
Revision as of 17:50, 26 March 2012
Defined in header <exception>
|
||
class nested_exception; |
(since C++11) | |
std::nested_exceptions
is a polymorphic mixin class which can capture and store the current exception, making it possible to nest exceptions of arbitrary types within each other.
Member functions
constructs a nested_exception (public member function of Template:cpp/error/exception/nested exception/title )
| |
[virtual] |
destructs a nested exception (virtual public member function of Template:cpp/error/exception/nested exception/title )
|
replaces the contents of a nested_exception (public member function of Template:cpp/error/exception/nested exception/title )
| |
throws the stored exception (public member function of Template:cpp/error/exception/nested exception/title )
| |
obtains a pointer to the stored exception (public member function of Template:cpp/error/exception/nested exception/title )
|
Template:cpp/error/exception/nested exception example