From: YANAGAWA Kazuhisa Date: 2004-07-05T20:34:06+09:00 Subject: Re: Exceptions list - Unix ENOENT not the name of the exception - what is? In Message-Id: <2kseplF5p2cpU1@uni-berlin.de> "Robert Klemme" writes: > Of course you are right, but this code snippet was just meant to determine > the proper type. I was responding to another suggestion how to find the > type of this exception. This was not meant to be program code. Actually no extra code is needed in this case: > ruby -e 'File.open("no_such_file")' -e:1:in `initialize': No such file or directory - no_such_file (Errno::ENOENT) from -e:1:in `open' from -e:1 As you can see, a class of an exception raised is showed in () of the message. Just FYI. -- kjana@dm4lab.to July 5, 2004 Never put off till tomorrow what you can do today.