Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Bill Venners wrote: > > My own thought is that one should catch exceptions in the > This is good as far as it goes but I wonder about how locally In this case I believe it truly depends on the situation. If you are using an API that is independent of each call (i.e. one call has no bearing on the next call) then I would put all the calls under one try/catch. I am assuming that the problem is somehow related the the library itself not by recalling. If one call affects the previous call then I would stair-step the calls making sure to isolate the calls to better debug. Cascade exceptions could easily occur in this situation. Replies: |
Sponsored Links
|