"Holden Glova" <dsafari / paradise.net.nz> 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 ? <snip> > 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