CompletableFuture.FailedStage(Throwable) Method

Definition

Returns a new CompletionStage that is already completed exceptionally with the given exception and supports only those methods in interface CompletionStage.

[Android.Runtime.Register("failedStage", "(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletionStage;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public static Java.Util.Concurrent.ICompletionStage? FailedStage (Java.Lang.Throwable? ex);
[<Android.Runtime.Register("failedStage", "(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletionStage;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
static member FailedStage : Java.Lang.Throwable -> Java.Util.Concurrent.ICompletionStage

Parameters

ex
Throwable

the exception

Returns

the exceptionally completed CompletionStage

Attributes

Remarks

Returns a new CompletionStage that is already completed exceptionally with the given exception and supports only those methods in interface CompletionStage.

Added in 9.

Java documentation for java.util.concurrent.CompletableFuture.failedStage(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