Compartir a través de


DefaultHandler.FatalError(SAXParseException) Method

Definition

Report a fatal XML parsing error.

[Android.Runtime.Register("fatalError", "(Lorg/xml/sax/SAXParseException;)V", "GetFatalError_Lorg_xml_sax_SAXParseException_Handler")]
public virtual void FatalError (Org.Xml.Sax.SAXParseException? e);
[<Android.Runtime.Register("fatalError", "(Lorg/xml/sax/SAXParseException;)V", "GetFatalError_Lorg_xml_sax_SAXParseException_Handler")>]
abstract member FatalError : Org.Xml.Sax.SAXParseException -> unit
override this.FatalError : Org.Xml.Sax.SAXParseException -> unit

Parameters

e
SAXParseException

The error information encoded as an exception.

Implements

Attributes

Exceptions

Any SAX exception, possibly wrapping another exception.

Remarks

Report a fatal XML parsing error.

The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.

Java documentation for org.xml.sax.helpers.DefaultHandler.fatalError(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