From: ser@... (Sean Russell) Date: 2003-06-24T10:22:14+09:00 Subject: Re: [REXML] ParseExtension nobu.nokada@softhome.net wrote in message news:<200306220055.h5M0tkuG024067@sharui.nakada.kanuma.tochigi.jp>... > It seems tiresome to use. I guess it'd be better to be a > subclass of RuntimeError which can be caught by simle rescue. Hm. Ok. > Furthermore, sorry if I'm missing something, you seem to mix > bare Exception, ParseException and RuntimeError inconsistently. Do I? I don't remember conciously generating a RuntimeError; I *may* generate plain Exceptions, although I tried to be consistent in using ParseExceptions in the parser... I don't use ParseExceptions anywhere else in REXML, I hope. > And, in parsers/baseparser.rb, "raise $!" hides further > backtrace. This might make debug harder. Oh, reraising an exception doesn't preserve the backtrace? That surprises me, and it's not very helpful. I'll check on that. > Another thing I noticed is that #{} is used inside '' literal, > at parsers/baseparser.rb:144. Thanks. --- SER