Freigeben über


InvocationTargetException Constructors

Definition

Overloads

InvocationTargetException()

Constructs an InvocationTargetException with null as the target exception.

InvocationTargetException(Throwable)

Constructs a InvocationTargetException with a target exception.

InvocationTargetException(Throwable, String)

Constructs a InvocationTargetException with a target exception and a detail message.

InvocationTargetException(IntPtr, JniHandleOwnership)

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

InvocationTargetException()

Constructs an InvocationTargetException with null as the target exception.

[Android.Runtime.Register(".ctor", "()V", "")]
protected InvocationTargetException ();
Attributes

Remarks

Constructs an InvocationTargetException with null as the target exception.

Java documentation for java.lang.reflect.InvocationTargetException.InvocationTargetException().

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

InvocationTargetException(Throwable)

Constructs a InvocationTargetException with a target exception.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public InvocationTargetException (Java.Lang.Throwable? target);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Lang.Reflect.InvocationTargetException : Java.Lang.Throwable -> Java.Lang.Reflect.InvocationTargetException

Parameters

target
Throwable

the target exception

Attributes

Remarks

Constructs a InvocationTargetException with a target exception.

Java documentation for java.lang.reflect.InvocationTargetException.InvocationTargetException(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

InvocationTargetException(Throwable, String)

Constructs a InvocationTargetException with a target exception and a detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;Ljava/lang/String;)V", "")]
public InvocationTargetException (Java.Lang.Throwable? target, string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;Ljava/lang/String;)V", "")>]
new Java.Lang.Reflect.InvocationTargetException : Java.Lang.Throwable * string -> Java.Lang.Reflect.InvocationTargetException

Parameters

target
Throwable

the target exception

s
String

the detail message

Attributes

Remarks

Constructs a InvocationTargetException with a target exception and a detail message.

Java documentation for java.lang.reflect.InvocationTargetException.InvocationTargetException(java.lang.Throwable, 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

InvocationTargetException(IntPtr, JniHandleOwnership)

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

protected InvocationTargetException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Reflect.InvocationTargetException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Reflect.InvocationTargetException

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