ExecutionException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ExecutionException() |
構建一個 |
| ExecutionException(Throwable) |
構造具有指定原因的 。 |
| ExecutionException(String) |
構建包含指定細節訊息的 。 |
| ExecutionException(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| ExecutionException(String, Throwable) |
構造出具有指定細節訊息與原因的 。 |
ExecutionException()
構建一個 ExecutionException 沒有細節的訊息。
[Android.Runtime.Register(".ctor", "()V", "")]
protected ExecutionException();
- 屬性
備註
構建一個 ExecutionException 沒有細節的訊息。 原因未被初始化,之後可透過呼叫 #initCause(Throwable) initCause初始化。
Java 文件 java.util.concurrent.ExecutionException.ExecutionException()。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ExecutionException(Throwable)
構造具有指定原因的 。ExecutionException
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public ExecutionException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Util.Concurrent.ExecutionException : Java.Lang.Throwable -> Java.Util.Concurrent.ExecutionException
參數
- cause
- Throwable
原因(該方法會保存以供日後檢索 #getCause() )
- 屬性
備註
構造具有指定原因的 。ExecutionException 詳細訊息設為 (cause == null ? null : cause.toString()) (通常包含的 cause類別與詳細訊息)。
Java 文件 java.util.concurrent.ExecutionException.ExecutionException(java.lang.Throwable)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ExecutionException(String)
構建包含指定細節訊息的 。ExecutionException
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
protected ExecutionException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Util.Concurrent.ExecutionException : string -> Java.Util.Concurrent.ExecutionException
參數
- message
- String
細節訊息
- 屬性
備註
構建包含指定細節訊息的 。ExecutionException 原因未被初始化,之後可透過呼叫 #initCause(Throwable) initCause初始化。
Java 文件 java.util.concurrent.ExecutionException.ExecutionException(java.lang.String)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ExecutionException(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected ExecutionException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ExecutionException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ExecutionException
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ExecutionException(String, Throwable)
構造出具有指定細節訊息與原因的 。ExecutionException
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public ExecutionException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Util.Concurrent.ExecutionException : string * Java.Lang.Throwable -> Java.Util.Concurrent.ExecutionException
參數
- message
- String
細節訊息
- cause
- Throwable
原因(該方法會保存以供日後檢索 #getCause() )
- 屬性
備註
構造出具有指定細節訊息與原因的 。ExecutionException
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。