std::nested_exception::nested_exception

From cppreference.com
 
 
Utilities library
Type support (basic types, RTTI, type traits)
Dynamic memory management
Error handling
Program utilities
Variadic functions
Date and time
Function objects
(C++11)
Relational operators
Optional and any
(C++17)
(C++17)
Pairs and tuples
(C++11)
(C++17)
Swap, forward and move
(C++14)
(C++11)
(C++11)
Type operations
(C++11)
(C++17)
 
 
 
nested_exception();
(1) (since C++11)
nested_exception( const nested_exception& other ) = default;
(2) (since C++11)

Constructs new nested_exception object.

1) Default constructor. Stores an exception object obtained by calling std::current_exception() within the new nested_exception object.
2) Copy constructor. Initializes the object with the exception stored in other.

[edit] Parameters

other - nested exception to initialize the contents with

[edit] Exceptions

noexcept specification:  
noexcept