Finding out what line number exceptions were raised?

If I rescue an exception and I do the following

rescue Exception => e
puts “The line number the exception was raised is…”

How do I complete that puts statement?

Thanks for your help.

On Aug 6, 2006, at 1:40 PM, Ben J. wrote:

Posted via

Rails mailing list
[email protected]

     rescue Exception => e
       logger.error "#{ e.message } - (#{ e.class })" << "\n" <<

(e.backtrace or []).join(“\n”)

that will get you pretty much all the info you can get from an