Difference between revisions of "cpp/error/exception"
From cppreference.com
m (Text replace - "{{tdcl list end" to "{{dcl list end") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/title | exception}} | {{cpp/title | exception}} | ||
− | {{cpp/error/exception/ | + | {{cpp/error/exception/navbar}} |
{{ddcl | header=exception | | {{ddcl | header=exception | | ||
class exception; | class exception; |
Revision as of 12:32, 15 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
- bad_typeid
- bad_cast
- bad_weak_ptr(C++11)
- bad_function_call(C++11)
- bad_alloc
- bad_array_new_length(C++11)
- bad_exception
- system_error(C++11)
- future_error(C++11)