次の方法で共有


IErrorHandler.Error(SAXParseException) Method

Definition

Receive notification of a recoverable error.

[Android.Runtime.Register("error", "(Lorg/xml/sax/SAXParseException;)V", "GetError_Lorg_xml_sax_SAXParseException_Handler:Org.Xml.Sax.IErrorHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Error (Org.Xml.Sax.SAXParseException? exception);
[<Android.Runtime.Register("error", "(Lorg/xml/sax/SAXParseException;)V", "GetError_Lorg_xml_sax_SAXParseException_Handler:Org.Xml.Sax.IErrorHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Error : Org.Xml.Sax.SAXParseException -> unit

Parameters

exception
SAXParseException

The error information encapsulated in a SAX parse exception.

Attributes

Exceptions

Any SAX exception, possibly wrapping another exception.

Remarks

Receive notification of a recoverable error.

This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.

The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. If the application cannot do so, then the parser should report a fatal error even if the XML recommendation does not require it to do so.

Filters may use this method to report other, non-XML errors as well.

Java documentation for org.xml.sax.ErrorHandler.error(org.xml.sax.SAXParseException).

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