Re: [jruby-dev] Enhancements for Java exceptions

2008-08-03 Thread Peter Williams
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 -- do

Re: [jruby-dev] Enhancements for Java exceptions

2008-08-03 Thread Charles Oliver Nutter
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? Mostly I was trying to avoid interfering with languages or frameworks that use Error subtypes for int

Re: [jruby-dev] Enhancements for Java exceptions

2008-08-03 Thread Uwe Kubosch
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? Uwe - To unsubscribe from this list, please visit:

Re: [jruby-dev] Enhancements for Java exceptions

2008-08-02 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: 3. rescue can now rescue Java exceptions directly ... It's working correctly for both interpreted and compiled logic. Basically this just adds a Java catch (Exception e) to rescue logic so any exceptions passing through will be inspected, like all Ruby exceptions