About 91 results
Open links in new tab
  1. 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.

  2. 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 …

  3. 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 …

  4. 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 …

  5. 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 …

  6. 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 …

  7. 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 …

  8. 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; }

  9. cppreference.com

    What links here Related changes Upload file Special pages Printable version Permanent link Page information

  10. 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 …