Have you ever had pickaxe in your hands? Have you read it through at least
once? It has a big chapter dedicated to exceptions with a nice table of
exception inheritance tree. It has a very useful index too, by the way.

----- Original Message -----
From: "Shannon Fang" <xrfang / hotmail.com>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, December 03, 2002 5:49 AM
Subject: exception types


> Hi,
>
> Can anybody help me on the rescue clause? I tried to catch file not found
> error of file.open method, but I don't know what type of error to use in
> rescue clause. i tried to write nothing after rescue, it seems not
catching
> the error. Further more:
>
> 1. where can I find a reference to different kind of runtime errors? It
> seems that there are no information on that (Exception Class?) in
pickaxe...
>
> 2. in "rescue SyntaxError, NameError => boom", is => used to denote a
hash?
> if so, why NameError is a hash? If not, maybe gavin can add this usage of
=>
> to the FunnySymbolsInCode FAQ...
>
> Thanks,
> Shannon
>
>
>
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
>
>