Namespaces
Variants
Views
Actions

std::exception::exception

From cppreference.com
< cpp‎ | error‎ | exception
Revision as of 15:59, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

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

<tr class="t-dcl ">

<td >
exception();
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
exception( const exception& other );
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Constructs new exception object.

1) Default constructor. what() returns empty string.

2) Copy constructor. Initializes the contents with those of other

Parameters

other - another exception to assign the contents of

Exceptions

1-2)
noexcept specification:  
noexcept