Documentation for this section has not yet been entered.
Get method documentation [Android Documentation]
Gets the current Org.Xml.Sax.IErrorHandler set to this Javax.Xml.Validation.SchemaFactory.
Set method documentation [Android Documentation]
Sets the Org.Xml.Sax.IErrorHandler to receive errors encountered
during the newSchema method invocation.
Error handler can be used to customize the error handling process
during schema parsing. When an Org.Xml.Sax.IErrorHandler is set,
errors found during the parsing of schemas will be first sent
to the Org.Xml.Sax.IErrorHandler.
The error handler can abort the parsing of a schema immediately
by throwing Org.Xml.Sax.SAXException from the handler. Or for example
it can print an error to the screen and try to continue the
processing by returning normally from the Org.Xml.Sax.IErrorHandler
If any Java.Lang.Throwable (or instances of its derived classes)
is thrown from an Org.Xml.Sax.IErrorHandler,
the caller of the newSchema method will be thrown
the same Java.Lang.Throwable object.
Javax.Xml.Validation.SchemaFactory is not allowed to
throw Org.Xml.Sax.SAXException without first reporting it to
Org.Xml.Sax.IErrorHandler.
Applications can call this method even during a Javax.Xml.Validation.Schema
is being parsed.
When the Org.Xml.Sax.IErrorHandler is null, the implementation will
behave as if the following Org.Xml.Sax.IErrorHandler is set:
java Example
class DraconianErrorHandler implements ErrorHandler {
public void fatalError( SAXParseException e ) throws SAXException {
throw e;
}
public void error( SAXParseException e ) throws SAXException {
throw e;
}
public void warning( SAXParseException e ) throws SAXException {
// noop
}
}