From: Austin Ziegler Date: 2004-07-02T20:26:10+09:00 Subject: Re: Exceptions list - Unix ENOENT not the name of the exception - what is? On Fri, 2 Jul 2004 20:12:51 +0900, Graham Nicholls wrote: > I'm trying to open a file, and if the user hasn't given an extension, adding > one, but I can't find out what exception to use. If I leave off the rescue > statements, then I see ENOENT, so try using that, but get a NameError - > 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. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca