ahh, knew it had to be something like that...thanks!
Jack
----- Original Message ----- 
From: <nobu.nokada / softhome.net>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Sunday, January 06, 2002 11:20 PM
Subject: [ruby-talk:30425] Re: modifier form of rescue


> At Mon, 7 Jan 2002 12:38:12 +0900,
> Jack Dempsey <dabigdemp / hotmail.com> wrote:
> > but this doesn't
> > 
> > require 'blahblah' rescue print "No such file!\n"
> 
> The modifier catches only StandardError and its subclasses.
> 
>   $ ruby -e 'p LoadError < StandardError'
>   false
> 
> You need to specify LoadError explicitly.
> 
>   begin
>     require 'blahblah'
>   rescue LoadError
>     print "No such file!\n"
>   end
> 
> -- 
> Nobu Nakada
>