From: Charles Oliver Nutter Date: 2011-04-30T15:33:00+09:00 Subject: [ruby-core:35957] Re: change in timeout error On Thu, Apr 28, 2011 at 7:05 PM, Roger Pack wrote: > Hello. Sorry if this is a repeat... > > I noticed that apparently from > http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-core/15458?15182-15607+split-mode-vertical > > In CRuby 1.9, Timeout::Error is a StandardError so you can rescue it > with the 'rescue' statement. > In CRuby 1.8, Timeout::Error is not a StandardError but a Interrupt > which is a subclass of SignalException. So you can NOT rescue it with > the 'rescue'. I assume you mean you can't rescue it with a bare 'rescue'. Of course you can rescue Exception or Interrupt or Timeout::Error. I do not know why the change was made, but we recently fixed in JRuby in response to a bug report. - Charlie