From: Dick Davies Date: 2004-07-02T21:48:45+09:00 Subject: Re: Exceptions list - Unix ENOENT not the name of the exception - what is? * Graham Nicholls [0723 13:23]: > Austin Ziegler wrote: > > > > >> ENOENT is the Unix error, not Ruby's. So, what is the exception for a > >> missing file on IO.foreach, and how in general can I get a list of > >> exceptions or find out which is the right one to use? > > > > Try rescuing Errno::ENOENT. Out of interest, is there anyway of knowing what exceptions a given class can raise? I'd expect not, but I've been wrong before (as any regulars on this list will know). -- I haven't lost my mind; I know exactly where I left it. Rasputin :: Jack of All Trades - Master of Nuns