
std::exception - cppreference.com
Provides consistent interface to handle errors through the throw expression. All exceptions generated by the standard library inherit from std::exception.
Exceptions - cppreference.com
Exceptions Exception handling provides a way of transferring control and information from some point in the execution of a program to a handler associated with a point previously passed by the execution …
std::exception::exception - cppreference.com
Because copying std::exception is not permitted to throw exceptions, when derived classes (such as std::runtime_error) have to manage a user-defined diagnostic message, it is typically implemented as …
Throwing exceptions - cppreference.com
Throwing an exception transfers control to a handler. An exception can be thrown from throw expressions, the following contexts may also throw exceptions: allocation functions dynamic_cast …
Handling exceptions - cppreference.com
Matching exceptions Each try block associates with a number of handlers, these handlers form a handler sequence. When an exception is thrown from a try block, the handlers in the sequence are …
Standard library header <exception> - cppreference.com
Class std::bad_exception namespace std { class bad_exception : public exception { public: // see [exception] for the specification of the special member functions const char* what() const noexcept …
std::exception_ptr - cppreference.com
std::exception_ptr is a nullable pointer-like type that manages an exception object which has been thrown and captured with std::current_exception. An instance of std::exception_ptr may be passed to …
Standard library header <stdexcept> - cppreference.com
namespace std { class logic_error; class domain_error; class invalid_argument; class length_error; class out_of_range; class runtime_error; class range_error; class overflow_error; class underflow_error; }
cppreference.com
What links here Related changes Upload file Special pages Printable version Permanent link Page information
std::current_exception - cppreference.com
If called during exception handling (typically, in a catch clause), captures the current exception object and creates an std::exception_ptr that holds either a copy or a reference to that exception object …