Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/exception"

From cppreference.com
< cpp‎ | error
m (Shorten template names. Use {{lc}} where appropriate.)
m (Update links.)
Line 33: Line 33:
 
===Member functions===
 
===Member functions===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/error/exception/dcl list constructor | exception}}
+
{{dsc inc | cpp/error/exception/dsc constructor | exception}}
{{dsc inc | cpp/error/exception/dcl list destructor}}
+
{{dsc inc | cpp/error/exception/dsc destructor}}
{{dsc inc | cpp/error/exception/dcl list operator{{=}}}}
+
{{dsc inc | cpp/error/exception/dsc operator{{=}}}}
{{dsc inc | cpp/error/exception/dcl list what}}
+
{{dsc inc | cpp/error/exception/dsc what}}
 
{{dsc end}}
 
{{dsc end}}
  

Revision as of 21:52, 31 May 2013

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
 
Defined in header <exception>
class exception;

Provides consistent interface to handle errors through the throw expression.

All exceptions generated by the standard library inherit from std::exception

Member functions

(constructor)
constructs the exception object
(public member function) [edit]
[virtual]
destroys the exception object
(virtual public member function) [edit]
copies exception object
(public member function) [edit]
[virtual]
returns an explanatory string
(virtual public member function) [edit]