On Fri, 2 Jul 2004 21:48:45 +0900, Dick Davies
<rasputnik / hellooperator.net> wrote:

> 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).

As far as I know, no. However, I have also read that the "promised"
list of exceptions (cf Java) is more problematic than useful (ISTR
something on Joel on Software about it). However, using the classtree
method (http://www.rubygarden.org/ruby?ASCIIClassHierarchyGenerator),
you can call:

  class_tree(Exception, false, false)

And get a tree of possible exceptions. That's where I found Errno::ENOENT.

-austin
-- 
Austin Ziegler * halostatue / gmail.com
               * Alternate: austin / halostatue.ca