Bruce Eckel's Thinking in C++, 2nd Ed | Contents | Prev | Next |
exception
|
The
base class for all the exceptions thrown by the C++ standard library. You can
ask
what( )
and get a result that can be displayed as a character representation.
|
logic_error
|
Derived
from
exception.
Reports program logic errors, which could presumably be detected before the
program executes.
|
runtime_error
|
Derived
from
exception.
Reports
run-time errors, which can presumably be detected only when the program executes.
|
Exception
classes derived from
runtime_error
|
|
---|---|
range_error
|
Reports
violation of a postcondition.
|
overflow_error
|
Reports
an arithmetic overflow.
|
bad_alloc
|
Reports
a failure to allocate storage.
|