The <stdexcept>
header defines several standard exception classes. (Refer
to <exception>
for the base
exception
class.) Figure 13-24 shows all the
exception classes in the standard library, including a few that are
declared in other headers. Note that the standard library has very few
places that throw exceptions. The exceptions in <stdexcept>
are available primarily for
your use.
See Chapter 3 for more
information about throw
expressions
and Chapter 4 for information about
handling exceptions with try
statements.