mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2026-09-03 05:12:56 +08:00
update
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
**不要直接重用 Exception、RuntimeException、Throwable 或者 Error。** 对待这些类要像对待抽象类一样。你无法可靠地测试这些异常,因为它们是一个方法可能抛出的其他异常的超类。
|
||||
|
||||
下表概括了最常见的可重用异常:
|
||||
下表概括了最常见的可重用异常:
|
||||
|
||||
|
||||
| 异常 | 使用场合 |
|
||||
|
||||
Reference in New Issue
Block a user