commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Fischer <ste...@pcbi.upenn.edu>
Subject Re: Digester: No rules found matching
Date Sat, 05 Jun 2004 02:27:45 GMT
Simon Kitching wrote:

>>Unfortunately, the DefaultHandler does not offer the option of 
>>terminating on error (instead it logs [ERROR] messages).
>>
>>So, I am now in search of an ErrorHandler that does that.
>>    
>>
>
>You should just create a subclass of ErrorHandler. It's really trivial
>to write. Each of the methods "warning", "error", "fatalError" just need
>to be:
>  // throw the parameter as an exception
>  throw exception;
>
>I suggest writing it as a static inner class, or even an anonymous
>class, if you are only creating the digester in one place.
>  
>
excellent.  will do.

>Regards,
>
>Simon
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>  
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message