Java Reference
In-Depth Information
The classes that define various exceptions are related by inheritance, creating a
class hierarchy that is shown in part in Figure 11.1
The
Throwable
class is the parent of both the
Error
class and the
Exception
class. Many types of exceptions are derived from the
Exception
class, and these
classes also have many children. Though these high-level classes are defined
in the
java.lang
package, many child classes that define specific exceptions
are part of several other packages. Inheritance relationships can span package
boundaries.
Object
Throwable
Error
Exception
RunTimeException
LinkageError
ThreadDeath
ArithmeticException
VirtualMachineError
IndexOutOfBoundsException
AWTError
NullPointerException
IllegalAccessException
NoSuchMethodException
ClassNotFoundException
FIGURE 11.1
Part of the
Error
and
Exception
class hierarchy
Search WWH ::
Custom Search