Namespaces
Variants
Views
Actions

std::nested_exception::nested_exception

From cppreference.com
< cpp‎ | error‎ | nested exception
Revision as of 16:11, 22 March 2013 by P12 (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td >
nested_exception();
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
nested_exception( const nested_exception& other ) = default;
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

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 contructor. Initializes the object with the exception stored in other.

Parameters

other - nested exception to initialize the contents with

Exceptions

noexcept specification:  
noexcept