Common exceptions like what?

Copyright: Reprinted please note the name of the source https://blog.csdn.net/meism5/article/details/90414205

Common exceptions like what?

Abnormal very much, Throwable is abnormal root class.

Throwable subclass contains errors and exceptions -Error -Exception.

Exception RuntimeException generally divided into abnormal and abnormal operation.

Runtime exception code is not required to explicitly capture processing.

 

The figure is a common exception classes and their parent-child relationship:

Throwable

|  ├ Error  

|  │ ├ IOError

|  │ ├ LinkageError

|  │ ├ ReflectionError

|  │ ├ ThreadDeath

| │ └ VirtualMachineError

|  │ 

|  ├ Exception  

|  │ ├ CloneNotSupportedException

|  │ ├ DataFormatException

|  │ ├ InterruptedException

|  │ ├ IOException

|  │ ├ ReflectiveOperationException

|  │ ├ RuntimeException 

|  │    ├ ArithmeticException

|  │    ├ ClassCastException

| │ ├ ConcurrentModificationException

|  │    ├ IllegalArgumentException

| │ ├ IndexOutOfBoundsException

|  │    ├ NoSuchElementException

|  │    ├ NullPointerException

|  │ └ SecurityException

|  │ └  SQLException

 

Guess you like

Origin blog.csdn.net/meism5/article/details/90414205