Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines several types and functions related to the handling of exceptions. Exception handling is used in situations in which the system can recover from an error. It provides a means for control to be returned from a function to the program. The objective of incorporating exception handling is to increase the program's robustness while providing a way to recover from an error in an orderly fashion.
#include <exception>
Typedefs
A type that describes a pointer to an exception. |
|
A type that describes a pointer to a function suitable for use as a terminate_handler. |
|
A type that describes a pointer to a function suitable for use as an unexpected_handler. |
Functions
Obtains a pointer to the current exception. |
|
Obtains the current terminate_handler function. |
|
Obtains the current unexpected_handler function. |
|
Creates an exception_ptr object that holds a copy of an exception. |
|
Throws an exception passed as a parameter. |
|
Establishes a new terminate_handler to be called at the termination of the program. |
|
Establishes a new unexpected_handler to be when an unexpected exception is encountered. |
|
Calls a terminate handler. |
|
Returns true only if a thrown exception is being currently processed. |
|
Calls an unexpected handler. |
Classes
The class describes an exception that can be thrown from an unexpected_handler. |
|
The class serves as the base class for all exceptions thrown by certain expressions and by the Standard C++ Library. |
See Also
Reference
Thread Safety in the C++ Standard Library