Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/exception"

From cppreference.com
< cpp‎ | error
(unlink exception_list)
m (+bad_variant_access to the tree)
Line 34: Line 34:
 
*{{ltt|cpp/error/bad_exception}}
 
*{{ltt|cpp/error/bad_exception}}
 
*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}{{mark until c++11}}
 
*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}{{mark until c++11}}
 +
*{{ltt|cpp/utility/variant/bad_variant_access}}{{mark c++17}}
  
 
===Member functions===
 
===Member functions===

Revision as of 13:42, 6 July 2016

 
 
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

constructs the exception object
(public member function)
[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]