Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/exception"

From cppreference.com
< cpp‎ | error
m (Text replace - "/sidebar" to "/navbar")
(Moving 'future_error' under 'logic_error', and moving 'system_error' under 'runtime_error'.)
Line 14: Line 14:
 
:*{{ltt|cpp/error/length_error}}
 
:*{{ltt|cpp/error/length_error}}
 
:*{{ltt|cpp/error/out_of_range}}
 
:*{{ltt|cpp/error/out_of_range}}
 +
:*{{ltt|cpp/thread/future_error}}{{mark c++11}}
 
*{{ltt|cpp/error/runtime_error}}
 
*{{ltt|cpp/error/runtime_error}}
 
:*{{ltt|cpp/error/range_error}}
 
:*{{ltt|cpp/error/range_error}}
 
:*{{ltt|cpp/error/overflow_error}}
 
:*{{ltt|cpp/error/overflow_error}}
 
:*{{ltt|cpp/error/underflow_error}}
 
:*{{ltt|cpp/error/underflow_error}}
 +
:*{{ltt|cpp/error/system_error}}{{mark c++11}}
 +
::*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}{{mark c++11}}
 
*{{ltt|cpp/types/bad_typeid}}
 
*{{ltt|cpp/types/bad_typeid}}
 
*{{ltt|cpp/types/bad_cast}}
 
*{{ltt|cpp/types/bad_cast}}
Line 25: Line 28:
 
:*{{ltt|cpp/memory/new/bad_array_new_length}}{{mark c++11}}
 
:*{{ltt|cpp/memory/new/bad_array_new_length}}{{mark c++11}}
 
*{{ltt|cpp/error/bad_exception}}
 
*{{ltt|cpp/error/bad_exception}}
*{{ltt|cpp/error/system_error}}{{mark c++11}}
+
*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}
:*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}
+
*{{ltt|cpp/thread/future_error}}{{mark c++11}}
+
  
 
===Member functions===
 
===Member functions===

Revision as of 11:39, 29 June 2012

 
 
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

Template:cpp/error/exception/dcl list constructorTemplate:cpp/error/exception/dcl list destructorTemplate:cpp/error/exception/dcl list operator=Template:cpp/error/exception/dcl list what