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

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

SchemaFactory.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.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
     }
 }
 
When a new Javax.Xml.Validation.SchemaFactory object is created, initially this field is set to null. This field will NOT be inherited to Javax.Xml.Validation.Schemas, Javax.Xml.Validation.Validators, or Javax.Xml.Validation.ValidatorHandlers that are created from this Javax.Xml.Validation.SchemaFactory.

Requirements

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