Forum: Ruby Exceptions automatically emailed

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2ebf42f8625b86c0e91ae7bd4e2bef52?d=identicon&s=25 Raymond O'Connor (nappin)
on 2007-03-05 01:54
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.
This topic is locked and can not be replied to.