From: Shashank Date Date: 2003-01-19T16:31:38+09:00 Subject: Re: Handling exceptions "Holden Glova" wrote in message > On Sat, 18 Jan 2003 17:49, Shashank Date wrote: > > How do I get the type (class) of exception thrown by any given peice of > > code ? > irb(main):011:1> rescue StandardError => e > irb(main):012:1> puts e.type.to_s > irb(main):013:1> end But of course ! Duh !! I modified it slightly as: rescue Exception => e to catch every possible exception. > - -- > Signed, > Holden Glova Thanks a lot ... -- shanko