ErrorCode.smali
.class public final enum Lokhttp3/internal/http2/ErrorCode;
.super Ljava/lang/Enum;
.source "ErrorCode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum",
"<",
"Lokhttp3/internal/http2/ErrorCode;",
">;"
}
.end annotation
# static fields
.field public static final enum CANCEL:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
.field private static final synthetic bXD:[Lokhttp3/internal/http2/ErrorCode;
# instance fields
.field public final httpCode:I
# direct methods
.method static constructor <clinit>()V
.registers 9
.prologue
const/4 v8, 0x7
const/4 v7, 0x3
const/4 v6, 0x2
const/4 v5, 0x1
const/4 v4, 0x0
.line 21
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "NO_ERROR"
invoke-direct {v0, v1, v4, v4}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 23
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "PROTOCOL_ERROR"
invoke-direct {v0, v1, v5, v5}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 25
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "INTERNAL_ERROR"
invoke-direct {v0, v1, v6, v6}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 27
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "FLOW_CONTROL_ERROR"
invoke-direct {v0, v1, v7, v7}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 29
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "REFUSED_STREAM"
const/4 v2, 0x4
invoke-direct {v0, v1, v2, v8}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
.line 31
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "CANCEL"
const/4 v2, 0x5
const/16 v3, 0x8
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
.line 33
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "COMPRESSION_ERROR"
const/4 v2, 0x6
const/16 v3, 0x9
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 35
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "CONNECT_ERROR"
const/16 v2, 0xa
invoke-direct {v0, v1, v8, v2}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 37
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "ENHANCE_YOUR_CALM"
const/16 v2, 0x8
const/16 v3, 0xb
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
.line 39
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "INADEQUATE_SECURITY"
const/16 v2, 0x9
const/16 v3, 0xc
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
.line 41
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v1, "HTTP_1_1_REQUIRED"
const/16 v2, 0xa
const/16 v3, 0xd
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
.line 19
const/16 v0, 0xb
new-array v0, v0, [Lokhttp3/internal/http2/ErrorCode;
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v4
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v5
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v6
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v7
const/4 v1, 0x4
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
const/4 v1, 0x5
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
const/4 v1, 0x6
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v8
const/16 v1, 0x8
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
const/16 v1, 0x9
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
const/16 v1, 0xa
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
aput-object v2, v0, v1
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->bXD:[Lokhttp3/internal/http2/ErrorCode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.prologue
.line 45
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 46
iput p3, p0, Lokhttp3/internal/http2/ErrorCode;->httpCode:I
.line 47
return-void
.end method
.method public static fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
.registers 6
.prologue
.line 50
invoke-static {}, Lokhttp3/internal/http2/ErrorCode;->values()[Lokhttp3/internal/http2/ErrorCode;
move-result-object v2
array-length v3, v2
const/4 v0, 0x0
move v1, v0
:goto_7
if-ge v1, v3, :cond_14
aget-object v0, v2, v1
.line 51
iget v4, v0, Lokhttp3/internal/http2/ErrorCode;->httpCode:I
if-ne v4, p0, :cond_10
.line 53
:goto_f
return-object v0
.line 50
:cond_10
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_7
.line 53
:cond_14
const/4 v0, 0x0
goto :goto_f
.end method
.method public static valueOf(Ljava/lang/String;)Lokhttp3/internal/http2/ErrorCode;
.registers 2
.prologue
.line 19
const-class v0, Lokhttp3/internal/http2/ErrorCode;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object v0
check-cast v0, Lokhttp3/internal/http2/ErrorCode;
return-object v0
.end method
.method public static values()[Lokhttp3/internal/http2/ErrorCode;
.registers 1
.prologue
.line 19
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->bXD:[Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {v0}, [Lokhttp3/internal/http2/ErrorCode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lokhttp3/internal/http2/ErrorCode;
return-object v0
.end method