logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [jruby-dev] Flow control should use Error-based exceptions: msg#00171

Subject: Re: [jruby-dev] Flow control should use Error-based exceptions
On 7/24/07, Ola Bini <ola.bini-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
Just noticed a thing, thanks to John Lam. Our JumpExceptions derive from
RuntimeException. That means that code that will catch(Exception) will
stop flow control, if it happens at the wrong place. To get around this,
I believe we should consider going to have JumpExceptions based on
java.lang.Error instead.

Seems reasonable.  For that matter, why not just extend Throwable?  They're not Errors either, really.

/Nick

<Prev in Thread] Current Thread [Next in Thread>