.TH "std::nested_exception" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::nested_exception .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBnested_exception\fP () noexcept" .br .RI "The default constructor stores the current exception (if any)\&. " .ti -1c .RI "\fBnested_exception\fP (const \fBnested_exception\fP &) noexcept=\fBdefault\fP" .br .ti -1c .RI "\fBexception_ptr\fP \fBnested_ptr\fP () const noexcept" .br .RI "Access the stored exception\&. " .ti -1c .RI "\fBnested_exception\fP & \fBoperator=\fP (const \fBnested_exception\fP &) noexcept=\fBdefault\fP" .br .ti -1c .RI "\fBvoid\fP \fBrethrow_nested\fP () const" .br .RI "Rethrow the stored exception, or terminate if none was stored\&. " .in -1c .SH "Detailed Description" .PP Mixin class that stores the current exception\&. .PP This type can be used via \fCstd::throw_with_nested\fP to store the current exception nested within another exception\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP \fBSee also\fP .RS 4 std::throw_with_nested .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "std::nested_exception::nested_exception ()\fC [inline]\fP, \fC [noexcept]\fP" .PP The default constructor stores the current exception (if any)\&. .SH "Member Function Documentation" .PP .SS "\fBexception_ptr\fP std::nested_exception::nested_ptr () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Access the stored exception\&. .SS "\fBvoid\fP std::nested_exception::rethrow_nested () const\fC [inline]\fP" .PP Rethrow the stored exception, or terminate if none was stored\&. .PP References \fBstd::rethrow_exception()\fP, and \fBstd::terminate()\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.