From: Robert Evans Date: 2007-04-25T08:28:25+09:00 Subject: Re: exception and $! Ah! Bummer! On Apr 24, 2007, at 11:38 AM, Gary Wright wrote: > > On Apr 24, 2007, at 12:04 PM, Robert Evans wrote: > >> If I understand what you are trying to do (refactor a bunch of >> exception handling code) then maybe overriding the #rescue method >> in general for your session so that it always print it's exception >> and stacktrace, would give you the information you want. > > rescue is a keyword, not a method, and so can't be redefined. > > I tried overriding Exception.new, but that didn't work. > I think Ruby cheats and bypasses Exception.new in some cases. > > > Gary Wright > > > >