{% include "/android/_dackka-meta-tags.html" %}

DuplicateTaskCompletionException

{% setvar page_path %}com/google/android/gms/tasks/DuplicateTaskCompletionException.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_java_switcher2.md" %}

public final class DuplicateTaskCompletionException extends IllegalStateException

java.lang.Object
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalStateException
           ↳ com.google.android.gms.tasks.DuplicateTaskCompletionException

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.