Sets the error handler, for both XML and RDF parse errors. XML errors are
reported by Xerces, as instances of SAXParseException; the RDF errors are
reported from ARP as instances of ParseException. Code that needs to
distingusih between them may look like:
void error( SAXParseException e ) throws SAXException {
if ( e instanceof com.hp.hpl.jena.rdf.arp.ParseException ) {
...
} else {
...
}
}
See the ARP documentation for ErrorHandler for details of the
ErrorHandler semantics (in particular how to upgrade a warning to an
error, and an error to a fatalError).
The Xerces/SAX documentation for ErrorHandler is available on the web.
Parameters: eh - The error handler to use. The previous error handler. |