On Tue, Jan 25, 2011 at 1:03 AM, Shantanu Kumar
<[email protected]> wrote:
> The changed code should catch 'Exception', not 'Throwable' because the
> latter is a common ancestor of both 'Exception' and 'Error'. An
> 'Error' must not be swallowed at any point in the system, unless you
> are writing an app server or a JVM implementation. ;-)

Remember, we're no longer using a "finally" clause, so for the .close
to be exception-safe *everything* must be caught. But it's rethrown
unless both threw exceptions, and then we were only ever going to be
able to keep one exception anyway.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to