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.ValidatorHandler.
Set method documentation [Android Documentation]
Sets the Org.Xml.Sax.IErrorHandler to receive errors encountered
during the validation.
Error handler can be used to customize the error handling process
during a validation. When an Org.Xml.Sax.IErrorHandler is set,
errors found during the validation will be first sent
to the Org.Xml.Sax.IErrorHandler.
The error handler can abort further validation 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
validation by returning normally from the Org.Xml.Sax.IErrorHandler
If any Java.Lang.Throwable is thrown from an Org.Xml.Sax.IErrorHandler,
the same Java.Lang.Throwable object will be thrown toward the
root of the call stack.
Javax.Xml.Validation.ValidatorHandler is not allowed to
throw Org.Xml.Sax.SAXException without first reporting it to
Org.Xml.Sax.IErrorHandler.
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
}
}