다음을 통해 공유


InvocationTargetException.TargetException Property

Definition

Get the thrown target exception.

public virtual Java.Lang.Throwable? TargetException { [Android.Runtime.Register("getTargetException", "()Ljava/lang/Throwable;", "GetGetTargetExceptionHandler")] get; }
[<get: Android.Runtime.Register("getTargetException", "()Ljava/lang/Throwable;", "GetGetTargetExceptionHandler")>]
member this.TargetException : Java.Lang.Throwable

Property Value

the thrown target exception (cause of this exception).

Attributes

Remarks

Get the thrown target exception.

This method predates the general-purpose exception chaining facility. The Throwable#getCause() method is now the preferred means of obtaining this information.

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

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