[
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
- References:
- SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: David Megginson <david.megginson@gmail.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Uche Ogbuji <uche.ogbuji@fourthought.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Karl Waclawek <karl@waclawek.net>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Karl Waclawek <karl@waclawek.net>
- Re: [xml-dev] SAXException, checked, buy why?
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
|