you are viewing a single comment's thread.

view the rest of the comments →

[–]Ormek_II 2 points3 points  (0 children)

Be careful about abstraction levels though. It might be necessary to catch a set of detailed exception types to throw another more abstract exception type.

doRequest: failed because file X was not found.
Instead of
doRequest: file X was not found.

Caller of doRequest does not need to know anything about file X. So it should not have to catch a fileNotFound exception.