Namespaces
Variants
Views
Actions

std::exception::exception

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

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
 

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

<td >
exception();
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </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