granularity level: instruction
.class public final Lcom/google/firebase/messaging/SendException;
.super Ljava/lang/Exception;
.source "SendException.java"
.field public static final ERROR_INVALID_PARAMETERS:I = 0x1
.field public static final ERROR_SIZE:I = 0x2
.field public static final ERROR_TOO_MANY_MESSAGES:I = 0x4
.field public static final ERROR_TTL_EXCEEDED:I = 0x3
.field public static final ERROR_UNKNOWN:I
.field private final errorCode:I
.method constructor <init>(Ljava/lang/String;)V
.locals 0
invoke-direct {p0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/google/firebase/messaging/SendException;->parseErrorCode(Ljava/lang/String;)I
move-result p1
iput p1, p0, Lcom/google/firebase/messaging/SendException;->errorCode:I
return-void
.end method
.method private parseErrorCode(Ljava/lang/String;)I
.locals 7
const/4 v0, 0x0
if-nez p1, :cond_0
return v0
:cond_0
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {p1, v1}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
const/4 v1, -0x1
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
move-result v2
const/4 v3, 0x4
const/4 v4, 0x3
const/4 v5, 0x2
const/4 v6, 0x1
sparse-switch v2, :sswitch_data_0
goto :goto_0
:sswitch_0
const-string v2, "missing_to"
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x4
goto :goto_0
:sswitch_1
const-string v2, "messagetoobig"
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_2
goto :goto_0
:cond_2
const/4 v1, 0x3
goto :goto_0
:sswitch_2
const-string v2, "invalid_parameters"
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_3
goto :goto_0
:cond_3
const/4 v1, 0x2
goto :goto_0
:sswitch_3
const-string v2, "toomanymessages"
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_4
goto :goto_0
:cond_4
const/4 v1, 0x1
goto :goto_0
:sswitch_4
const-string v2, "service_not_available"
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_5
goto :goto_0
:cond_5
const/4 v1, 0x0
:goto_0
packed-switch v1, :pswitch_data_0
return v0
:pswitch_0
return v5
:pswitch_1
return v6
:pswitch_2
return v3
:pswitch_3
return v4
:pswitch_data_0
.packed-switch 0x0
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
:pswitch_1
.end packed-switch
:sswitch_data_0
.sparse-switch
-0x67e7c3ad -> :sswitch_4
-0x4cf26401 -> :sswitch_3
-0x36e3eace -> :sswitch_2
-0x24c7160d -> :sswitch_1
-0x5aa500c -> :sswitch_0
.end sparse-switch
.end method
.method public getErrorCode()I
.locals 1
iget v0, p0, Lcom/google/firebase/messaging/SendException;->errorCode:I
return v0
.end method