FutureTask.SetException(Throwable) Method

Definition

Causes this future to report an ExecutionException with the given throwable as its cause, unless this future has already been set or has been cancelled.

[Android.Runtime.Register("setException", "(Ljava/lang/Throwable;)V", "GetSetException_Ljava_lang_Throwable_Handler")]
protected virtual void SetException (Java.Lang.Throwable? t);
[<Android.Runtime.Register("setException", "(Ljava/lang/Throwable;)V", "GetSetException_Ljava_lang_Throwable_Handler")>]
abstract member SetException : Java.Lang.Throwable -> unit
override this.SetException : Java.Lang.Throwable -> unit

Parameters

t
Throwable

the cause of failure

Attributes

Remarks

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