This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,73 @@
.class public final Lcom/amplifyframework/datastore/utils/ErrorInspector;
.super Ljava/lang/Object;
.source "ErrorInspector.java"
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static contains(Ljava/lang/Throwable;Ljava/lang/Class;)Z
.locals 2
.param p0 # Ljava/lang/Throwable;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p1 # Ljava/lang/Class;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Throwable;",
"Ljava/lang/Class<",
"+",
"Ljava/lang/Throwable;",
">;)Z"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
.line 2
:cond_0
:try_start_0
invoke-virtual {p1, p0}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object p0
invoke-static {p0, p1}, Lcom/amplifyframework/datastore/utils/ErrorInspector;->contains(Ljava/lang/Throwable;Ljava/lang/Class;)Z
move-result p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz p0, :cond_2
:cond_1
const/4 v0, 0x1
:catchall_0
:cond_2
return v0
.end method