Chris Donhofer
9/25/2006 4:56:00 PM
thx jan, i'll have a look at it.
i still believe it would be better to have this information included in
each method description since it really shouldn't take more than a few
seconds to look it up. =)
cheers, chris
Jan Svitok wrote:
> On 9/25/06, Chris Donhofer <c.donhofer@chello.at> wrote:
>
>> i just noticed that there are some notes on errors raise, but some
>> functions that i expect to throw an error, f.i. copy_file, don't.
>> how come there's not an IOError or something like it?
>
>
> In that particular case, you'll likely encounter Errno::* exceptions.
> For a list of (core) defined exceptions, see Programming Ruby, or Ruby
> QuickRef.
>
> Or, require all the libs, and use ObjectSpace.each_object(Exception) {
> |e| puts e.name }
>
> That will obviously not give you info on what will a particular method
> raise, just what exceptions are there.
>
> J.
>