DuplicateTaskCompletionException

public final class DuplicateTaskCompletionException extends IllegalStateException


An exception indicating that something attempted to set a result, exception, or cancellation on a Task that was already completed.

Summary

Public methods

static IllegalStateException
of(Task<Object> task)

Creates a DuplicateTaskCompletionException from a Task.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String

Public methods

of

public static IllegalStateException of(Task<Object> task)

Creates a DuplicateTaskCompletionException from a Task.

The Task must be complete.