From: Joel VanderWerf Date: 2002-02-27T06:16:52+09:00 Subject: Re: Rescue Clause Tobias Reif wrote: > > Sean O'Dell wrote: > > > Where all can you put rescue clauses? > > I think I might like to be able to use it with open: > > open('foozboo.zer', 'r') do |file| > #... > rescue > #... > end > > Would this be useful? > ... or perhaps I'm missing something existing. Which exceptions would it catch? Ones from the open(), or ones from inside do...rescue ? The former doesn't seem likely.