語言

InvocationTargetException.TargetException 屬性

定義

取得投擲目標例外。

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

屬性值

投擲目標例外(導致此例外)。

屬性

備註

取得投擲目標例外。

此方法早於通用例外鏈接功能。 此 Throwable#getCause() 方法現已成為獲取這些資訊的首選方式。

Java 文件 java.lang.reflect.InvocationTargetException.getTargetException()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於