語言

CompletableFuture.ObtrudeException(Throwable) 方法

定義

強制使後續的方法 #get() 及相關方法呼叫拋出該異常,無論是否已完成。

[Android.Runtime.Register("obtrudeException", "(Ljava/lang/Throwable;)V", "GetObtrudeException_Ljava_lang_Throwable_Handler", ApiSince=24)]
public virtual void ObtrudeException(Java.Lang.Throwable? ex);
[<Android.Runtime.Register("obtrudeException", "(Ljava/lang/Throwable;)V", "GetObtrudeException_Ljava_lang_Throwable_Handler", ApiSince=24)>]
abstract member ObtrudeException : Java.Lang.Throwable -> unit
override this.ObtrudeException : Java.Lang.Throwable -> unit

參數

ex
Throwable

例外

屬性

備註

強制使後續的方法 #get() 及相關方法呼叫拋出該異常,無論是否已完成。 此方法僅設計用於錯誤復原動作,即使在此類情況下,仍可能導致依賴性完成,使用已建立與覆寫結果。

java.util.concurrent.CompletableFuture.obtrudeException(java.lang.Throwable)Java 檔。

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

適用於