ApiException.smali

.class public Lcom/bjz/comm/net/exception/ApiException;
.super Ljava/io/IOException;
.source "ApiException.java"


# instance fields
.field private code:I

.field private final msg:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(ILjava/lang/String;)V
    .registers 3
    .param p1, "code"    # I
    .param p2, "msg"    # Ljava/lang/String;

    .line 12
    invoke-direct {p0}, Ljava/io/IOException;-><init>()V

    .line 13
    iput p1, p0, Lcom/bjz/comm/net/exception/ApiException;->code:I

    .line 14
    iput-object p2, p0, Lcom/bjz/comm/net/exception/ApiException;->msg:Ljava/lang/String;

    .line 15
    return-void
.end method


# virtual methods
.method public getCode()I
    .registers 2

    .line 28
    iget v0, p0, Lcom/bjz/comm/net/exception/ApiException;->code:I

    return v0
.end method

.method public getMessage()Ljava/lang/String;
    .registers 3

    .line 20
    iget-object v0, p0, Lcom/bjz/comm/net/exception/ApiException;->msg:Ljava/lang/String;

    if-eqz v0, :cond_f

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_f

    .line 21
    iget-object v0, p0, Lcom/bjz/comm/net/exception/ApiException;->msg:Ljava/lang/String;

    return-object v0

    .line 23
    :cond_f
    invoke-super {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method