TransformerException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The exception to be wrapped.
- Attributes
Remarks
Create a new TransformerException wrapping an existing 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
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.
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
- 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.
Any exception
- Attributes
Remarks
Wrap an existing exception in a TransformerException.
This is used for throwing processor exceptions before the processing has started.
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.
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.
Any exception
- Attributes
Remarks
Wrap an existing exception in a TransformerException.
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.