A
Andrew Chen
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
end
e only prints out a message.
Am I missing anything real simple?
Thanks
~Andrew Chen
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
end
e only prints out a message.
Am I missing anything real simple?
Thanks
~Andrew Chen