ITeye博客

Item 58: Used checked exceptions for recoverable conditions and runtime exceptions for programming errors

amanhu · 2011-03-08 15:53 · Markdown

1 use checked exceptions for conditions from which the caller can reasonably be expected to recover.

2 use runtime exceptions to indicate programming errors. The majority of runtime exceptions indicate precondition violations.

3.All of the unchecked throwable you implement should subclass RuntimeException.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。