I want to send e-mail when an exception will occur. What is important
mail should contain backtrace.
At first I redefined initialize method in
Exception class, it worked but of course I didn
t have access to backtrace. Now I have redefined set_backtrace method. It works as I want to, its access to backtrace and message of exception. I send
mail directly from set_backtrace, because I noticed that method is
time an exception occurs.
Is it correct way? Maybe, you could propose better solution of my
Thanks in advance.