Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.tasks;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-tasks@@18.1.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class DuplicateTaskCompletionException extends IllegalStateException {
|
||||
private DuplicateTaskCompletionException(String str, Throwable th) {
|
||||
super(str, th);
|
||||
}
|
||||
|
||||
public static IllegalStateException of(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 ? "failure" : task.isSuccessful() ? "result ".concat(String.valueOf(String.valueOf(task.getResult()))) : task.isCanceled() ? "cancellation" : "unknown issue"), exception);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user