CompletableFuture.ExceptionNow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the failure of an already failed future without waiting for completion.
[Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler", ApiSince=36)]
public virtual Java.Lang.Throwable? ExceptionNow();
[<Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler", ApiSince=36)>]
abstract member ExceptionNow : unit -> Java.Lang.Throwable
override this.ExceptionNow : unit -> Java.Lang.Throwable
Returns
The completion exception, with an available cause unwrapped from a CompletionException.
Implements
- Attributes
Remarks
This method throws IllegalStateException if the future is incomplete, cancelled, or successfully completed.