IFuture.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.
Returns the exception thrown by the task, without waiting.
[Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler:Java.Util.Concurrent.IFuture, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual Java.Lang.Throwable? ExceptionNow();
[<Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler:Java.Util.Concurrent.IFuture, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member ExceptionNow : unit -> Java.Lang.Throwable
override this.ExceptionNow : unit -> Java.Lang.Throwable
Returns
the exception thrown by the task
- Attributes
Remarks
Returns the exception thrown by the task, without waiting.
This method is for cases where the caller knows that the task has already completed with an exception.
Added in 19.
Java documentation for java.util.concurrent.Future.exceptionNow()
.
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.