On 25 Jan 2011 06:04, "Shantanu Kumar" <kumar.shant...@gmail.com> 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. ;-)

Throwable is better I think.  The idea is to be a more robust try/finally
construct, and finally still runs if an Error is thrown.  There is no
problem temporarily catching Throwable as long as you don't swallow it.

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

Reply via email to