Share via


TransformerException Constructors

Definition

Overloads

TransformerException(Throwable)

Create a new TransformerException wrapping an existing exception.

TransformerException(String)

Create a new TransformerException.

TransformerException(IntPtr, JniHandleOwnership)

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

TransformerException(String, Throwable)

Wrap an existing exception in a TransformerException.

TransformerException(String, ISourceLocator)

Create a new TransformerException from a message and a Locator.

TransformerException(String, ISourceLocator, Throwable)

Wrap an existing exception in a TransformerException.

TransformerException(Throwable)

Create a new TransformerException wrapping an existing exception.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public TransformerException (Java.Lang.Throwable? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Javax.Xml.Transform.TransformerException : Java.Lang.Throwable -> Javax.Xml.Transform.TransformerException

Parameters

e
Throwable

The exception to be wrapped.

Attributes

Remarks

Create a new TransformerException wrapping an existing exception.

Java documentation for javax.xml.transform.TransformerException.TransformerException(java.lang.Throwable).

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

TransformerException(String)

Create a new TransformerException.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public TransformerException (string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Javax.Xml.Transform.TransformerException : string -> Javax.Xml.Transform.TransformerException

Parameters

message
String

The error or warning message.

Attributes

Remarks

Create a new TransformerException.

Java documentation for javax.xml.transform.TransformerException.TransformerException(java.lang.String).

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

TransformerException(IntPtr, JniHandleOwnership)

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

protected TransformerException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Xml.Transform.TransformerException : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Xml.Transform.TransformerException

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

TransformerException(String, Throwable)

Wrap an existing exception in a TransformerException.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public TransformerException (string? message, Java.Lang.Throwable? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Javax.Xml.Transform.TransformerException : string * Java.Lang.Throwable -> Javax.Xml.Transform.TransformerException

Parameters

message
String

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

e
Throwable

Any exception

Attributes

Remarks

Wrap an existing exception in a TransformerException.

This is used for throwing processor exceptions before the processing has started.

Java documentation for javax.xml.transform.TransformerException.TransformerException(java.lang.String, java.lang.Throwable).

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

TransformerException(String, ISourceLocator)

Create a new TransformerException from a message and a Locator.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljavax/xml/transform/SourceLocator;)V", "")]
public TransformerException (string? message, Javax.Xml.Transform.ISourceLocator? locator);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljavax/xml/transform/SourceLocator;)V", "")>]
new Javax.Xml.Transform.TransformerException : string * Javax.Xml.Transform.ISourceLocator -> Javax.Xml.Transform.TransformerException

Parameters

message
String

The error or warning message.

locator
ISourceLocator

The locator object for the error or warning.

Attributes

Remarks

Create a new TransformerException from a message and a Locator.

This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback.

Java documentation for javax.xml.transform.TransformerException.TransformerException(java.lang.String, javax.xml.transform.SourceLocator).

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

TransformerException(String, ISourceLocator, Throwable)

Wrap an existing exception in a TransformerException.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljavax/xml/transform/SourceLocator;Ljava/lang/Throwable;)V", "")]
public TransformerException (string? message, Javax.Xml.Transform.ISourceLocator? locator, Java.Lang.Throwable? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljavax/xml/transform/SourceLocator;Ljava/lang/Throwable;)V", "")>]
new Javax.Xml.Transform.TransformerException : string * Javax.Xml.Transform.ISourceLocator * Java.Lang.Throwable -> Javax.Xml.Transform.TransformerException

Parameters

message
String

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

locator
ISourceLocator

The locator object for the error or warning.

e
Throwable

Any exception

Attributes

Remarks

Wrap an existing exception in a TransformerException.

Java documentation for javax.xml.transform.TransformerException.TransformerException(java.lang.String, javax.xml.transform.SourceLocator, java.lang.Throwable).

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