Friday, March 23, 2007

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:


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?

binkley said...

Why do you say 'completely backwards'? Do you propose to use unchecked exceptions for things the caller *can* do something about?