From: Daniel DeLorme Date: 2008-02-10T18:53:12+09:00 Subject: Re: Timeout::Error Joel VanderWerf wrote: > begin > Timeout.standard_timeout 1.0 do > begin > sleep > rescue # inner > puts "this should not happen" > end > end > rescue => ex # outer > p ex > end What about the reverse problem? A lazy programmer might do a catch-all rescue which would then catch unexpected inner exceptions which were not meant to be rescued. i.e. begin Timeout.timeout(1) do 1 / 0 #oops! end rescue #silently ignore timeout #...but ignores division by zero too! end *That* might be the reason why Timeout::Error was not made a subclass of StandardError. -- Daniel