Difference between revisions of "cpp/error/exception"
From cppreference.com
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/io/ios_base/failure|ios_base::failure}} | |
− | + | ||
− | + | ||
===Member functions=== | ===Member functions=== |
Revision as of 11:39, 29 June 2012
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
-
- ios_base::failure(C++11)
- bad_typeid
- bad_cast
- bad_weak_ptr(C++11)
- bad_function_call(C++11)
- bad_alloc
- bad_array_new_length(C++11)