From: Laurent Julliard Date: 2004-11-26T02:15:58+09:00 Subject: [Q] Catching exceptions at top level 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