次の方法で共有


IParser.SetErrorHandler(IErrorHandler) Method

Definition

Caution

deprecated

Allow an application to register an error event handler.

[Android.Runtime.Register("setErrorHandler", "(Lorg/xml/sax/ErrorHandler;)V", "GetSetErrorHandler_Lorg_xml_sax_ErrorHandler_Handler:Org.Xml.Sax.IParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void SetErrorHandler (Org.Xml.Sax.IErrorHandler? handler);
[<Android.Runtime.Register("setErrorHandler", "(Lorg/xml/sax/ErrorHandler;)V", "GetSetErrorHandler_Lorg_xml_sax_ErrorHandler_Handler:Org.Xml.Sax.IParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member SetErrorHandler : Org.Xml.Sax.IErrorHandler -> unit

Parameters

handler
IErrorHandler

The error handler.

Attributes

Remarks

Allow an application to register an error event handler.

If the application does not register an error event handler, all error events reported by the SAX parser will be silently ignored, except for fatalError, which will throw a SAXException (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Java documentation for org.xml.sax.Parser.setErrorHandler(org.xml.sax.ErrorHandler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also