std::exception

From cppreference.com
< cpp‎ | error
 
 
Utilities library
Type support (basic types, RTTI, type traits)
Dynamic memory management
Error handling
Program utilities
Variadic functions
Date and time
Function objects
(C++11)
Relational operators
Optional and any
(C++17)
(C++17)
Pairs and tuples
(C++11)
(C++17)
Swap, forward and move
(C++14)
(C++11)
(C++11)
Type operations
(C++11)
(C++17)
 
Error handling
Exception handling
exception
(C++11)
(C++17)
Exception handling failures
(C++11)
(deprecated)
(deprecated)
(C++11)(deprecated)
(deprecated)
 
 
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

[edit] Member functions

constructs the exception object
(public member function)
[virtual]
destructs the exception object
(virtual public member function)
copies exception object
(public member function)
[virtual]
returns an explanatory string
(virtual public member function)