If I rescue an exception and I do the following
rescue Exception => e
puts “The line number the exception was raised is…”
end
How do I complete that puts statement?
Thanks for your help.
If I rescue an exception and I do the following
rescue Exception => e
puts “The line number the exception was raised is…”
end
How do I complete that puts statement?
Thanks for your help.
On Aug 6, 2006, at 1:40 PM, Ben J. wrote:
–
Posted via http://www.ruby-forum.com/.
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
rescue Exception => e
logger.error "#{ e.message } - (#{ e.class })" << "\n" <<
(e.backtrace or []).join("\n")
end
that will get you pretty much all the info you can get from an
exception.
-Ezra
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs