Compartir a través de


IErrorHandler.Warning(SAXParseException) Method

Definition

Receive notification of a warning.

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

Parameters

exception
SAXParseException

The warning information encapsulated in a SAX parse exception.

Attributes

Exceptions

Any SAX exception, possibly wrapping another exception.

Remarks

Receive notification of a warning.

SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation. 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.

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

Java documentation for org.xml.sax.ErrorHandler.warning(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