std::exception

From cppreference.com
< cpp‎ | error
 
 
 
Error handling
Exception handling
exception
Exception handling failures
(until C++17)
(until C++17)
(C++11)(until C++17)
(until C++17)
Contracts
 
 
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)
copies exception object
(public member function)
[virtual]
returns an explanatory string
(virtual public member function)