Uwe Kubosch wrote:
On Sat, 2008-08-02 at 23:20 -0500, Charles Oliver Nutter wrote:
- You can only catch java.lang.Exception subtypes right now...should I allow all Throwables?

Yes, why not?
Throwable includes all java.lang.Errors, which generally you don't ever want to catch -- don't handle an exceptional case that the code doesn't know what to do with.

There is one caveat -- java's assert keyword produces an AssertionError, and there are times when you want an "all exceptions (including asserts) stop here" point. I've had to do this exactly once, ever, though so I don't think JRuby should care about this one either. If you want to, you can catch Exception and AssertionError separately.

-Peter


Uwe

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to