Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/exception"

From cppreference.com
< cpp‎ | error
(Undo revision 108413 by Fruderica (talk))
(+ format_error; reorder)
Line 21: Line 21:
 
:*{{ltt|cpp/error/underflow_error}}
 
:*{{ltt|cpp/error/underflow_error}}
 
:*{{ltt|cpp/regex/regex_error}}{{mark c++11}}
 
:*{{ltt|cpp/regex/regex_error}}{{mark c++11}}
:*{{ltt|cpp/chrono/nonexistent_local_time}}{{mark c++20}}
 
:*{{ltt|cpp/chrono/ambiguous_local_time}}{{mark c++20}}
 
:*{{ltt|cpp/error/tx_exception}}{{mark since tm ts}}
 
 
:*{{ltt|cpp/error/system_error}}{{mark c++11}}
 
:*{{ltt|cpp/error/system_error}}{{mark c++11}}
 
::*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}{{mark c++11}}
 
::*{{ltt|cpp/io/ios_base/failure|ios_base::failure}}{{mark c++11}}
 
::*{{ltt|cpp/filesystem/filesystem_error|filesystem::filesystem_error}}{{mark c++17}}
 
::*{{ltt|cpp/filesystem/filesystem_error|filesystem::filesystem_error}}{{mark c++17}}
 +
:*{{ltt|cpp/error/tx_exception}}{{mark since tm ts}}
 +
:*{{ltt|cpp/chrono/nonexistent_local_time}}{{mark c++20}}
 +
:*{{ltt|cpp/chrono/ambiguous_local_time}}{{mark c++20}}
 +
:*{{ltt|cpp/utility/format/format_error}}{{mark c++20}}
 
*{{ltt|cpp/types/bad_typeid}}
 
*{{ltt|cpp/types/bad_typeid}}
 
*{{ltt|cpp/types/bad_cast}}
 
*{{ltt|cpp/types/bad_cast}}

Revision as of 23:04, 13 November 2019

 
 
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]