std::nested_exception
- Provided by: libstdc++-15-doc (Version: 15.3.0-4ubuntu1)
- Source: gcc-15
- Report a bug
#include <exception>
nested_exception () noexcept
The default constructor stores the current exception (if any).
nested_exception (const nested_exception &) noexcept=default
exception_ptr nested_ptr () const noexcept
Access the stored exception. nested_exception & operator=
(const nested_exception &) noexcept=default
void rethrow_nested () const
Rethrow the stored exception, or terminate if none was stored.
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.
Since
See also
The default constructor stores the current exception (if any).
References std::current_exception().
Access the stored exception.
Rethrow the stored exception, or terminate if none was stored.
References std::rethrow_exception(), rethrow_nested(), and std::terminate().
Referenced by rethrow_nested().
Generated automatically by Doxygen for libstdc++ from the source code.