Standard C++ Library Reference ISO/IEC (VERSION3)

virtual ~exception() throw();
virtual const char *what() const throw();
};
The class serves as the base class for all exceptions thrown by certain expressions and by the
Standard C++ library. The C string value returned by what() is left unspecified by the default
constructor, but may be defined by the constructors for certain derived classes as an
implementation-defined C string.
None of the member functions throw any exceptions.
set_terminate
terminate_handler
set_terminate(terminate_handler pnew) throw();
The function establishes a new terminate handler as the function *pnew. Thus, pnew must not
be a null pointer. The function returns the address of the previous terminate handler.
set_unexpected
unexpected_handler
set_unexpected(unexpected_handler pnew) throw();
The function establishes a new unexpected handler as the function *pnew. Thus, pnew must
not be a null pointer. The function returns the address of the previous unexpected handler.
terminate
void terminate();
The function calls a terminate handler, a function of type void (). If terminate is called
directly by the program, the terminate handler is the one most recently set by a call to
set_terminate. If terminate is called for any of several other reasons during evaluation
of a throw expression, the terminate handler is the one in effect immediately after evaluating the
throw expression.
A terminate handler may not return to its caller. At program startup, the terminate handler is a
function that calls abort().