Exceptions automatically emailed

  • Thread starter Raymond O'connor
  • Start date
R

Raymond O'connor

Hi,
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.
Thanks,
Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,235
Messages
2,571,181
Members
47,818
Latest member
KazukoXea6

Latest Threads

Top