Javax.Xml.Validation.ValidatorHandler.ErrorHandler Property
Gets the current Org.Xml.Sax.IErrorHandler set to this Javax.Xml.Validation.ValidatorHandler.

Syntax

[get: Android.Runtime.Register("getErrorHandler", "()Lorg/xml/sax/ErrorHandler;", "GetGetErrorHandlerHandler")]
[set: Android.Runtime.Register("setErrorHandler", "(Lorg/xml/sax/ErrorHandler;)V", "GetSetErrorHandler_Lorg_xml_sax_ErrorHandler_Handler")]
public abstract Org.Xml.Sax.IErrorHandler ErrorHandler { get; set; }

See Also

ValidatorHandler.ErrorHandler

Value

Documentation for this section has not yet been entered.

Remarks

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
     }
 }
 
When a new Javax.Xml.Validation.ValidatorHandler object is created, initially this field is set to null.

Requirements

Namespace: Javax.Xml.Validation
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8