Kevin Brown
3/5/2006 4:40:00 AM
On Friday 03 March 2006 18:16, Michal Lomnicki wrote:
> >> Is it correct way?
> >
> > Does it work? Does it allow you to go back to solving more interesting
> > or valuable problems?
>
> Yes, it works, but I`m not sure if it works in all cases.
> I`m just courious about other solution of this problem:)
Unless I completely misunderstood you, why not just do:
begin
# Do whatever it is you're going to do
rescue Exception => e
# Create your email
message_string = "An error has occurred. Backtrace: #{e.backtrace}"
# Email it off however.
end
I get the strange feeling though that you want more than this...?