Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<exception>
Include the standard header <exception> to define several types and functions related to the
handling of exceptions.
namespace std {
class exception;
class bad_exception;
// FUNCTIONS
typedef void (*terminate_handler)();
typedef void (*unexpected_handler)();
terminate_handler
set_terminate(terminate_handler pnew) throw();
unexpected_handler
set_unexpected(unexpected_handler pnew) throw();
void terminate();
void unexpected();
bool uncaught_exception();
};
bad_exception
class bad_exception
: public exception {
};
The class describes an exception that can be thrown from an unexpected handler. The value
returned by what() is an implementation-defined C string. None of the member functions
throw any exceptions.
exception
class exception {
public:
exception() throw();
exception(const exception& right) throw();
exception& operator=(const exception& right) throw();