52 lines
1.2 KiB
Smali
52 lines
1.2 KiB
Smali
|
.class Lcom/bugsnag/android/HttpClient$BadResponseException;
|
||
|
.super Ljava/lang/Exception;
|
||
|
.source "HttpClient.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/bugsnag/android/HttpClient;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = "BadResponseException"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Ljava/lang/String;I)V
|
||
|
.locals 5
|
||
|
.param p1, "url" # Ljava/lang/String;
|
||
|
.param p2, "responseCode" # I
|
||
|
|
||
|
.prologue
|
||
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
||
|
|
||
|
const-string v1, "Got non-200 response code (%d) from %s"
|
||
|
|
||
|
const/4 v2, 0x2
|
||
|
|
||
|
new-array v2, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
aput-object v4, v2, v3
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
aput-object p1, v2, v3
|
||
|
|
||
|
invoke-static {v0, v1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|