From: Kevin Brown Date: 2006-03-05T13:40:13+09:00 Subject: Re: Sending mail when exception occured 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...?