OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] SAXException, checked, buy why?

[ Lists Home | Date Index | Thread Index ]

Alan Gutierrez wrote:

>>What makes this different from the ErrorHandler interface
>>already specified in SAX?
> 
> 
>     public interface ErrorHandler {
>         public void error(SAXParseException exception)
>             throws SAXException;
>         public void fatalError(SAXParseException exception)
>             throws SAXException;
>         public void warning(SAXParseException exception)
>             throws SAXException;
>     }
> 
>     It is meant to respond to errors in parse, not errors in content
>     handling. If content handler authors were to adopt it for use as
>     a means to intercept genral errors, they'd be going against the
>     documented use.
> 
>     http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html

I am not sure the docs really exclude its use in content handlers,
they just don't mention it. But they also don't mention that
the source for content handler events could be something other
than a SAX parser, in which case the question comes up whether
one is allowed to use ErrorHandler, and where to register its instance.

It might be more a question of underspecification than a question
of prohibited use?

Karl




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS