From: Roger Pack Date: 2008-12-04T00:35:55+09:00 Subject: Re: ruby wish list item: more standard rescues Brian Candler wrote: > There was a mistake there, the Timeout::Error line should say > > ["timeout error", lambda { raise Timeout::Error, "hello" }], > > You're right that this isn't a subclass of StandardError and isn't > caught. It's a subclass of Interrupt. You can argue whether that was a > good design decision or not - but since a Timeout::Error means that a > thread was aborted mid-way at some arbitrary point, it's definitely an > unusual case. > > There are plenty of posts about why the entire timeout library is broken > anyway. Yeah that one is the the kicker, and it is definitely broken. Any thoughts on making it descend from StandardError? [I want to propose it, as some others do...] Thanks! -=R http://rubyforge.org/tracker/?func=detail&atid=1698&aid=21239&group_id=426 -- Posted via http://www.ruby-forum.com/.