Arlen Cuss
8/31/2007 11:21:00 PM
> > module Kernel
> > alias _raise raise
> >
> > def raise(*a)
> > begin
> > _raise(*a)
> > rescue Exception => e
> > $stderr.print e.class, ": ", e.message, "\n"
> > $stderr.puts e.backtrace unless e.backtrace.nil?
> > end
> > end
> > end
I'm always a bit worried when I do this that there's a chance I'll be
aliasing my method right into someone else's aliased method. Is there
any way to do this 'safely'?
- Arlen.