apkfuckery/com.discord/smali_classes2/retrofit2/HttpException.smali
2020-07-08 16:44:49 +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:Lq0/n;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lq0/n<",
"*>;"
}
.end annotation
.end field
.field public final message:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lq0/n;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lq0/n<",
"*>;)V"
}
.end annotation
const-string v0, "response == null"
invoke-static {p1, v0}, Lq0/r;->b(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, Lq0/n;->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, Lq0/n;->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, Lq0/n;->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:Lq0/n;
return-void
.end method