apkfuckery/com.discord/smali_classes2/retrofit2/HttpException.smali
2020-09-22 07:09:10 +00:00

79 lines
2.1 KiB
Smali

.class public Lretrofit2/HttpException;
.super Ljava/lang/RuntimeException;
.source "HttpException.java"
# instance fields
.field public final code:I
.field public final transient d:Lk0/b0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lk0/b0<",
"*>;"
}
.end annotation
.end field
.field public final message:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lk0/b0;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lk0/b0<",
"*>;)V"
}
.end annotation
const-string v0, "response == null"
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "HTTP "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p1, Lk0/b0;->a:Lokhttp3/Response;
iget v1, v1, Lokhttp3/Response;->g:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p1, Lk0/b0;->a:Lokhttp3/Response;
iget-object v1, v1, Lokhttp3/Response;->f:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
iget-object v0, p1, Lk0/b0;->a:Lokhttp3/Response;
iget v1, v0, Lokhttp3/Response;->g:I
iput v1, p0, Lretrofit2/HttpException;->code:I
iget-object v0, v0, Lokhttp3/Response;->f:Ljava/lang/String;
iput-object v0, p0, Lretrofit2/HttpException;->message:Ljava/lang/String;
iput-object p1, p0, Lretrofit2/HttpException;->d:Lk0/b0;
return-void
.end method