|
libstdc++
|
Public Member Functions | |
| _GLIBCXX26_CONSTEXPR | nested_exception () noexcept |
| _GLIBCXX26_CONSTEXPR | nested_exception (const nested_exception &) noexcept=default |
| _GLIBCXX26_CONSTEXPR exception_ptr | nested_ptr () const noexcept |
| _GLIBCXX26_CONSTEXPR nested_exception & | operator= (const nested_exception &) noexcept=default |
| _GLIBCXX26_CONSTEXPR void | rethrow_nested () const |
Mixin class that stores the current exception.
This type can be used via std::throw_with_nested to store the current exception nested within another exception.
Definition at line 59 of file nested_exception.h.
|
inlinenoexcept |
The default constructor stores the current exception (if any).
Definition at line 66 of file nested_exception.h.
|
inlinenoexcept |
Access the stored exception.
Definition at line 93 of file nested_exception.h.
|
inline |
Rethrow the stored exception, or terminate if none was stored.
Definition at line 84 of file nested_exception.h.
References std::rethrow_exception(), and std::terminate().