Rule of Thumb: Unchecked Exception vs Checked Exception

If caller can not do anything to resolve the problem when exception happens, make the exception unchecked.

Technorati Tags:

Comments

Anonymous said…
This is completely backwards. Part of a good design is to minimize the assumptions about your caller. How do you know who is going to call you in the future?
Brian Oxley said…
Why do you say 'completely backwards'? Do you propose to use unchecked exceptions for things the caller *can* do something about?

Popular Posts