目录
1 引言............................................................................................................................................. 1
1.1 异常处理名词解释........................................................................................................... 1
1.2 概述.................................................................................................................................. 1
2 异常分类..................................................................................................................................... 1
2.1 检查性异常...................................................................................................................... 1
2.2 运行时异常...................................................................................................................... 2
2.3 错误.................................................................................................................................. 2
3 异常处理介绍............................................................................................................................. 2
4 Excepon 类的层次..................................................................................................................... 2
5 Java 内置异常类.......................................................................................................................... 3
6 异常方法..................................................................................................................................... 5
7 其他异常..................................................................................................................................... 5
7.1 自定义异常...................................................................................................................... 5
7.1.1 实例....................................................................................................................... 5
7.2 通用异常.......................................................................................................................... 8
8 捕获异常..................................................................................................................................... 8
8.1 捕获.................................................................................................................................. 8
8.1.1 捕获实例............................................................................................................... 8
8.2 多重捕获块...................................................................................................................... 9
8.2.1 多重捕获实例...................................................................................................... 10
9 异常抛出................................................................................................................................... 10
9.1 Throw.............................................................................................................................. 10
9.2 Throws............................................................................................................................ 11
9.3 nally 关键字.................................................................................................................. 11
9.3.1 实例..................................................................................................................... 11