From: nobu.nokada@... Date: 2003-06-22T09:55:47+09:00 Subject: Re: [REXML] ParseExtension Hi, At Tue, 17 Jun 2003 02:16:13 +0900, Sean Russell wrote: > > I'm courious why REXML::ParseException inherits Exception > > directly, instead of StandardError. > > There is no particular reason. I came from Java, and Exceptions are > higher level than Errors in Java, the reverse of how it is in Ruby, so > that's how I originally wrote it. It seems tiresome to use. I guess it'd be better to be a subclass of RuntimeError which can be caught by simle rescue. Furthermore, sorry if I'm missing something, you seem to mix bare Exception, ParseException and RuntimeError inconsistently. And, in parsers/baseparser.rb, "raise $!" hides further backtrace. This might make debug harder. Another thing I noticed is that #{} is used inside '' literal, at parsers/baseparser.rb:144. -- Nobu Nakada