AndroidAndroid开发Android技术知识

Android基础进阶之EffectJava翻译系列(第八章:异

2019-02-20  本文已影响0人  青楼爱小生
Item 57: Use exceptions only for exceptional conditions
Item 58: Use checked exceptions for recoverable conditions and

runtime exceptions for programming errors

Item 59: Avoid unnecessary use of checked exceptions
Item 60: Favor the use of standard exceptions
Item 61: Throw exceptions appropriate to the abstraction
Item 62: Document all exceptions thrown by each method
Item 63: Include failure-capture information in detail messages
Item 64: Strive for failure atomicity
Item 65: Don’t ignore exceptions
上一篇 下一篇

猜你喜欢

热点阅读