From: nobu.nokada@... Date: 2003-07-16T05:23:59+09:00 Subject: Re: Adding Information to Exceptions Hi, At Tue, 15 Jul 2003 22:17:11 +0900, Tim Hunter wrote: > def read_file(name) > raise MyError.new("line 1"), "Unable to read file: #{name}" Kernel#raise calls #exception method of the first argument with the rest, and throws the result. In 1.6, Exception#exception creates new instance of the class of self, but in 1.8 just sets mesg and backtrace to a clone. revision 1.34 date: 2001/11/13 08:19:51; author: matz; state: Exp; lines: +2 -2 * error.c (exc_exception): set "mesg" directly to the clone. it might be better to set mesg via some method for flexibility. -- Nobu Nakada