<stdexcept>
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.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.