17.10. Standard Library Exception Hierarchy
Experience has shown that exceptions fall nicely into a number of categories. The C++ Standard Library includes a hierarchy of exception classes, some of which are shown in Fig. 17.10. As we first discussed in Section 17.2, this hierarchy is headed by base-class
exception (defined in header
<exception>), which contains
what that derived classes can override to issue appropriate error messages.
Immediate derived classes of base-class
runtime_error and logic_error (both defined in header
<stdexcept>), each ...