- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
963 B
Java
22 lines
963 B
Java
package com.google.android.gms.tasks;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.login.LoginLogger;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class DuplicateTaskCompletionException extends IllegalStateException {
|
|
private DuplicateTaskCompletionException(String str, @Nullable Throwable th) {
|
|
super(str, th);
|
|
}
|
|
|
|
@NonNull
|
|
public static IllegalStateException of(@NonNull Task<?> task) {
|
|
if (!task.isComplete()) {
|
|
return new IllegalStateException("DuplicateTaskCompletionException can only be created from completed Task.");
|
|
}
|
|
Exception exception = task.getException();
|
|
return new DuplicateTaskCompletionException("Complete with: ".concat(exception != null ? LoginLogger.EVENT_EXTRAS_FAILURE : task.isSuccessful() ? "result ".concat(String.valueOf(task.getResult())) : task.isCanceled() ? "cancellation" : "unknown issue"), exception);
|
|
}
|
|
}
|