I was wondering if there is a way to override the Exception class so
that any exception is automatically emailed using my email library.
Right now I just do it in rescue blocks, but it would be useful to me if
I could just have it done automatically if an exception is raised
anywhere in my program. Is there any way to do this? Several months
ago someone asked a similar question and suggested overriding
Exception#set_backtrace, but wasn’t sure if there was a better way to do
it. Is this the best way to do it?
If so, where do I find the original code for set_backtrace? I see it on
the web but it is in C so I’m confused how I would modify that.