L
Laurent Julliard
I have sort of a trivial question here that I'm afraid is so simple
that I could not find the answer :-(
I'd like to be able to catch all unrescued exceptions raised in a Ruby
script in the END block that is executed last before the script
terminates. The goal is to intercept the the exception raised and
process the exception message and stack trace before it is printed
Shall I redefine the raise method to do this or is there another way?
Thanks for your help!
Laurent
that I could not find the answer :-(
I'd like to be able to catch all unrescued exceptions raised in a Ruby
script in the END block that is executed last before the script
terminates. The goal is to intercept the the exception raised and
process the exception message and stack trace before it is printed
Shall I redefine the raise method to do this or is there another way?
Thanks for your help!
Laurent