logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::nested_exception

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                        std::nested_exception(3cxx)

Constructor & Destructor Documentation

std::nested_exception::nested_exception()[inline],[noexcept]
       The default constructor stores the current exception (if any).

Detailed Description

       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
           C++11

       Seealso
           std::throw_with_nested

Member Function Documentation

exception_ptrstd::nested_exception::nested_ptr()const[inline],[noexcept]
       Access the stored exception.

   voidstd::nested_exception::rethrow_nested()const[inline]
       Rethrow the stored exception, or terminate if none was stored.

       References std::rethrow_exception(), and std::terminate().

Name

       std::nested_exception

Synopsis

       #include <exception>

   PublicMemberFunctionsnested_exception () noexcept
           The default constructor stores the current exception (if any).
       nested_exception (const nested_exception &) noexcept=defaultexception_ptrnested_ptr () const noexcept
           Access the stored exception.
       nested_exception & operator= (const nested_exception &) noexcept=defaultvoidrethrow_nested () const
           Rethrow the stored exception, or terminate if none was stored.

See Also