SAXParseException Constructors

Definition

Overloads

SAXParseException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SAXParseException(String, ILocator)

Create a new SAXParseException from a message and a Locator.

SAXParseException(String, ILocator, Exception)

Wrap an existing exception in a SAXParseException.

SAXParseException(String, String, String, Int32, Int32)

Create a new SAXParseException.

SAXParseException(String, String, String, Int32, Int32, Exception)

Create a new SAXParseException with an embedded exception.

SAXParseException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SAXParseException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Xml.Sax.SAXParseException : nativeint * Android.Runtime.JniHandleOwnership -> Org.Xml.Sax.SAXParseException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SAXParseException(String, ILocator)

Create a new SAXParseException from a message and a Locator.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Lorg/xml/sax/Locator;)V", "")]
public SAXParseException (string? message, Org.Xml.Sax.ILocator? locator);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Lorg/xml/sax/Locator;)V", "")>]
new Org.Xml.Sax.SAXParseException : string * Org.Xml.Sax.ILocator -> Org.Xml.Sax.SAXParseException

Parameters

message
String

The error or warning message.

locator
ILocator

The locator object for the error or warning (may be null).

Attributes

Remarks

Create a new SAXParseException from a message and a Locator.

This constructor is especially useful when an application is creating its own exception from within a org.xml.sax.ContentHandler ContentHandler callback.

Java documentation for org.xml.sax.SAXParseException.SAXParseException(java.lang.String, org.xml.sax.Locator).

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.

See also

Applies to

SAXParseException(String, ILocator, Exception)

Wrap an existing exception in a SAXParseException.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Lorg/xml/sax/Locator;Ljava/lang/Exception;)V", "")]
public SAXParseException (string? message, Org.Xml.Sax.ILocator? locator, Java.Lang.Exception? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Lorg/xml/sax/Locator;Ljava/lang/Exception;)V", "")>]
new Org.Xml.Sax.SAXParseException : string * Org.Xml.Sax.ILocator * Java.Lang.Exception -> Org.Xml.Sax.SAXParseException

Parameters

message
String

The error or warning message, or null to use the message from the embedded exception.

locator
ILocator

The locator object for the error or warning (may be null).

e
Exception

Any exception.

Attributes

Remarks

Wrap an existing exception in a SAXParseException.

This constructor is especially useful when an application is creating its own exception from within a org.xml.sax.ContentHandler ContentHandler callback, and needs to wrap an existing exception that is not a subclass of org.xml.sax.SAXException SAXException.

Java documentation for org.xml.sax.SAXParseException.SAXParseException(java.lang.String, org.xml.sax.Locator, java.lang.Exception).

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.

See also

Applies to

SAXParseException(String, String, String, Int32, Int32)

Create a new SAXParseException.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)V", "")]
public SAXParseException (string? message, string? publicId, string? systemId, int lineNumber, int columnNumber);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)V", "")>]
new Org.Xml.Sax.SAXParseException : string * string * string * int * int -> Org.Xml.Sax.SAXParseException

Parameters

message
String

The error or warning message.

publicId
String

The public identifier of the entity that generated the error or warning.

systemId
String

The system identifier of the entity that generated the error or warning.

lineNumber
Int32

The line number of the end of the text that caused the error or warning.

columnNumber
Int32

The column number of the end of the text that cause the error or warning.

Attributes

Remarks

Create a new SAXParseException.

This constructor is most useful for parser writers.

All parameters except the message are as if they were provided by a Locator. For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

Java documentation for org.xml.sax.SAXParseException.SAXParseException(java.lang.String, java.lang.String, java.lang.String, int, int).

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

SAXParseException(String, String, String, Int32, Int32, Exception)

Create a new SAXParseException with an embedded exception.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/Exception;)V", "")]
public SAXParseException (string? message, string? publicId, string? systemId, int lineNumber, int columnNumber, Java.Lang.Exception? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/Exception;)V", "")>]
new Org.Xml.Sax.SAXParseException : string * string * string * int * int * Java.Lang.Exception -> Org.Xml.Sax.SAXParseException

Parameters

message
String

The error or warning message, or null to use the message from the embedded exception.

publicId
String

The public identifier of the entity that generated the error or warning.

systemId
String

The system identifier of the entity that generated the error or warning.

lineNumber
Int32

The line number of the end of the text that caused the error or warning.

columnNumber
Int32

The column number of the end of the text that cause the error or warning.

e
Exception

Another exception to embed in this one.

Attributes

Remarks

Create a new SAXParseException with an embedded exception.

This constructor is most useful for parser writers who need to wrap an exception that is not a subclass of org.xml.sax.SAXException SAXException.

All parameters except the message and exception are as if they were provided by a Locator. For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

Java documentation for org.xml.sax.SAXParseException.SAXParseException(java.lang.String, java.lang.String, java.lang.String, int, int, java.lang.Exception).

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