Michael Fellinger
9/19/2007 3:39:00 AM
On 9/19/07, Andrew Chen <meihome@gmail.com> wrote:
> The ruby interpreter prints out a full trace of the exception.
>
> However, all the expection I got is an one line message. I need to know
> where the exception happened in my code. I don't mind it is verbose.
begin
....
Math.sqrt (-1)
rescue => e
puts e.inspect
puts e.backtrace
ensure
andrew.brain << open("ri"){|ri| ri.read('Exception')}
end