今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

384 lines
8.7 KiB

.class public Lbolts/AggregateException;
.super Ljava/lang/Exception;
.source "AggregateException.java"
# static fields
.field private static final DEFAULT_MESSAGE:Ljava/lang/String; = "There were multiple errors."
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field private innerThrowables:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List",
"<+",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
.prologue
.line 55
if-eqz p2, :cond_0
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x0
invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
:goto_0
invoke-direct {p0, p1, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
.line 57
invoke-static {p2}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
.line 58
return-void
.line 55
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public constructor <init>(Ljava/lang/String;[Ljava/lang/Throwable;)V
.locals 1
.prologue
.line 41
invoke-static {p2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
invoke-direct {p0, p1, v0}, Lbolts/AggregateException;-><init>(Ljava/lang/String;Ljava/util/List;)V
.line 42
return-void
.end method
.method public constructor <init>(Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<+",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
.prologue
.line 68
const-string v0, "There were multiple errors."
invoke-direct {p0, v0, p1}, Lbolts/AggregateException;-><init>(Ljava/lang/String;Ljava/util/List;)V
.line 69
return-void
.end method
# virtual methods
.method public getCauses()[Ljava/lang/Throwable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.prologue
.line 134
iget-object v0, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
iget-object v1, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
new-array v1, v1, [Ljava/lang/Throwable;
invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/Throwable;
return-object v0
.end method
.method public getErrors()Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Ljava/lang/Exception;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.prologue
.line 114
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 115
iget-object v0, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
if-nez v0, :cond_0
move-object v0, v1
.line 126
:goto_0
return-object v0
.line 119
:cond_0
iget-object v0, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
.line 120
instance-of v3, v0, Ljava/lang/Exception;
if-eqz v3, :cond_1
.line 121
check-cast v0, Ljava/lang/Exception;
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 123
:cond_1
new-instance v3, Ljava/lang/Exception;
invoke-direct {v3, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/Throwable;)V
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
:cond_2
move-object v0, v1
.line 126
goto :goto_0
.end method
.method public getInnerThrowables()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.prologue
.line 76
iget-object v0, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
return-object v0
.end method
.method public printStackTrace(Ljava/io/PrintStream;)V
.locals 4
.prologue
.line 81
invoke-super {p0, p1}, Ljava/lang/Exception;->printStackTrace(Ljava/io/PrintStream;)V
.line 83
const/4 v0, -0x1
.line 84
iget-object v1, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
move v1, v0
:goto_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
.line 85
const-string v3, "\n"
invoke-virtual {p1, v3}, Ljava/io/PrintStream;->append(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
.line 86
const-string v3, " Inner throwable #"
invoke-virtual {p1, v3}, Ljava/io/PrintStream;->append(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
.line 87
add-int/lit8 v1, v1, 0x1
invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {p1, v3}, Ljava/io/PrintStream;->append(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
.line 88
const-string v3, ": "
invoke-virtual {p1, v3}, Ljava/io/PrintStream;->append(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
.line 89
invoke-virtual {v0, p1}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintStream;)V
.line 90
const-string v0, "\n"
invoke-virtual {p1, v0}, Ljava/io/PrintStream;->append(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
goto :goto_0
.line 92
:cond_0
return-void
.end method
.method public printStackTrace(Ljava/io/PrintWriter;)V
.locals 4
.prologue
.line 96
invoke-super {p0, p1}, Ljava/lang/Exception;->printStackTrace(Ljava/io/PrintWriter;)V
.line 98
const/4 v0, -0x1
.line 99
iget-object v1, p0, Lbolts/AggregateException;->innerThrowables:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
move v1, v0
:goto_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
.line 100
const-string v3, "\n"
invoke-virtual {p1, v3}, Ljava/io/PrintWriter;->append(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
.line 101
const-string v3, " Inner throwable #"
invoke-virtual {p1, v3}, Ljava/io/PrintWriter;->append(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
.line 102
add-int/lit8 v1, v1, 0x1
invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {p1, v3}, Ljava/io/PrintWriter;->append(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
.line 103
const-string v3, ": "
invoke-virtual {p1, v3}, Ljava/io/PrintWriter;->append(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
.line 104
invoke-virtual {v0, p1}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V
.line 105
const-string v0, "\n"
invoke-virtual {p1, v0}, Ljava/io/PrintWriter;->append(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
goto :goto_0
.line 107
:cond_0
return-void
.end method