From: YANAGAWA Kazuhisa Date: 2004-11-26T08:08:13+09:00 Subject: Re: [Q] Catching exceptions at top level In Message-Id: <41A654AB.1070002@moldus.org> Laurent Julliard writes: > The problem is that I must leave the original file containing the code > unchanged so it has to be a mechanism that i can include with a piece > of code added at runtime with a -r option How about the following? original.rb: # your original application code. wrapper.rb: begin load("original.rb") rescue Exception => e # transform and reraise. end then invoking wrapper.rb. -- kjana@dm4lab.to November 26, 2004 Slow and steady wins the race.