Initial commit
This commit is contained in:
85
sources/bolts/AggregateException.java
Normal file
85
sources/bolts/AggregateException.java
Normal file
@@ -0,0 +1,85 @@
|
||||
package bolts;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AggregateException extends Exception {
|
||||
private static final String DEFAULT_MESSAGE = "There were multiple errors.";
|
||||
private static final long serialVersionUID = 1;
|
||||
private List<Throwable> innerThrowables;
|
||||
|
||||
public AggregateException(String str, Throwable[] thArr) {
|
||||
this(str, (List<? extends Throwable>) Arrays.asList(thArr));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Throwable[] getCauses() {
|
||||
List<Throwable> list = this.innerThrowables;
|
||||
return (Throwable[]) list.toArray(new Throwable[list.size()]);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public List<Exception> getErrors() {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
List<Throwable> list = this.innerThrowables;
|
||||
if (list == null) {
|
||||
return arrayList;
|
||||
}
|
||||
for (Throwable th : list) {
|
||||
if (th instanceof Exception) {
|
||||
arrayList.add((Exception) th);
|
||||
} else {
|
||||
arrayList.add(new Exception(th));
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public List<Throwable> getInnerThrowables() {
|
||||
return this.innerThrowables;
|
||||
}
|
||||
|
||||
@Override // java.lang.Throwable
|
||||
public void printStackTrace(PrintStream printStream) {
|
||||
super.printStackTrace(printStream);
|
||||
int i = -1;
|
||||
for (Throwable th : this.innerThrowables) {
|
||||
printStream.append("\n");
|
||||
printStream.append(" Inner throwable #");
|
||||
i++;
|
||||
printStream.append((CharSequence) Integer.toString(i));
|
||||
printStream.append(": ");
|
||||
th.printStackTrace(printStream);
|
||||
printStream.append("\n");
|
||||
}
|
||||
}
|
||||
|
||||
public AggregateException(String str, List<? extends Throwable> list) {
|
||||
super(str, (list == null || list.size() <= 0) ? null : list.get(0));
|
||||
this.innerThrowables = Collections.unmodifiableList(list);
|
||||
}
|
||||
|
||||
public AggregateException(List<? extends Throwable> list) {
|
||||
this(DEFAULT_MESSAGE, list);
|
||||
}
|
||||
|
||||
@Override // java.lang.Throwable
|
||||
public void printStackTrace(PrintWriter printWriter) {
|
||||
super.printStackTrace(printWriter);
|
||||
int i = -1;
|
||||
for (Throwable th : this.innerThrowables) {
|
||||
printWriter.append("\n");
|
||||
printWriter.append(" Inner throwable #");
|
||||
i++;
|
||||
printWriter.append((CharSequence) Integer.toString(i));
|
||||
printWriter.append(": ");
|
||||
th.printStackTrace(printWriter);
|
||||
printWriter.append("\n");
|
||||
}
|
||||
}
|
||||
}
|
24
sources/bolts/AppLinkNavigation$NavigationResult.java
Normal file
24
sources/bolts/AppLinkNavigation$NavigationResult.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package bolts;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public enum AppLinkNavigation$NavigationResult {
|
||||
FAILED("failed", false),
|
||||
WEB("web", true),
|
||||
APP("app", true);
|
||||
|
||||
private String code;
|
||||
private boolean succeeded;
|
||||
|
||||
AppLinkNavigation$NavigationResult(String str, boolean z) {
|
||||
this.code = str;
|
||||
this.succeeded = z;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public boolean isSucceeded() {
|
||||
return this.succeeded;
|
||||
}
|
||||
}
|
11
sources/bolts/AppLinks.java
Normal file
11
sources/bolts/AppLinks.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package bolts;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class AppLinks {
|
||||
public static Bundle a(Intent intent) {
|
||||
return intent.getBundleExtra("al_applink_data");
|
||||
}
|
||||
}
|
8
sources/bolts/ExecutorException.java
Normal file
8
sources/bolts/ExecutorException.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package bolts;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ExecutorException extends RuntimeException {
|
||||
public ExecutorException(Exception exc) {
|
||||
super("An exception was thrown by an Executor", exc);
|
||||
}
|
||||
}
|
8
sources/bolts/UnobservedTaskException.java
Normal file
8
sources/bolts/UnobservedTaskException.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package bolts;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class UnobservedTaskException extends RuntimeException {
|
||||
public UnobservedTaskException(Throwable th) {
|
||||
super(th);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user