From cppreference.com
This header is part of the
library.
Types
base class for exceptions thrown by the standard library components
(class)
(C++11)
a mixin type to capture and store current exceptions
(class)
exception thrown when
fails to copy the exception object
(class)
(deprecated in C++11)(removed in C++17)
the type of the function called by
(typedef)
the type of the function called by
(typedef)
(C++11)
shared pointer type for handling exception objects
(typedef)
Functions
(deprecated in C++11)(removed in C++17)
function called when dynamic exception specification is violated
(function)
uncaught_exceptionuncaught_exceptions
(removed in C++20*)(C++17)
checks if exception handling is currently in progress
(function)
(C++11)
creates an
from an exception object
(function template)
(C++11)
captures the current exception in a
(function)
(C++11)
throws the exception from an
(function)
(C++11)
throws its argument with
mixed in
(function template)
(C++11)
throws the exception from a
(function template)
function called when exception handling fails
(function)
(C++11)
obtains the current terminate_handler
(function)
changes the function to be called by
(function)
(deprecated in C++11)(removed in C++17)
obtains the current unexpected_handler
(function)
(deprecated in C++11)(removed in C++17)
changes the function to be called by
(function)
Synopsis
namespacestd{classexception;classbad_exception;classnested_exception;usingterminate_handler=void(*)();terminate_handlerget_terminate()noexcept;terminate_handlerset_terminate(terminate_handlerf)noexcept;[[noreturn]]voidterminate()noexcept;intuncaught_exceptions()noexcept;usingexception_ptr=/* unspecified */;exception_ptrcurrent_exception()noexcept;[[noreturn]]voidrethrow_exception(exception_ptrp);template<classE>exception_ptrmake_exception_ptr(Ee)noexcept;template<classT>[[noreturn]]voidthrow_with_nested(T&&t);template<classE>voidrethrow_if_nested(constE&e);}Class
namespacestd{classexception{public:exception()noexcept;exception(constexception&)noexcept;exception&operator=(constexception&)noexcept;virtual~exception();virtualconstchar*what()constnoexcept;};}Class
namespacestd{classbad_exception:publicexception{public:// see [exception] for the specification of the special member functionsconstchar*what()constnoexceptoverride;};}Class
namespacestd{classnested_exception{public:nested_exception()noexcept;nested_exception(constnested_exception&)noexcept=default;nested_exception&operator=(constnested_exception&)noexcept=default;virtual~nested_exception()=default;// access functions[[noreturn]]voidrethrow_nested()const;exception_ptrnested_ptr()constnoexcept;};template<classT>[[noreturn]]voidthrow_with_nested(T&&t);template<classE>voidrethrow_if_nested(constE&e);}See also