Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Exceptions automatically emailed
Raymond O'connor
3/5/2007 12:55:00 AM
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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Exceptions automatically emailed
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password