.class public Lcom/intowow/sdk/AdError;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field public static final INTERNAL_ERROR:Lcom/intowow/sdk/AdError;

.field public static final NETWORK_ERROR:Lcom/intowow/sdk/AdError;

.field public static final NO_FILL_ERROR:Lcom/intowow/sdk/AdError;

.field public static final SDK_INIT_NOT_READY_ERROR:Lcom/intowow/sdk/AdError;

.field public static final SERVER_ERROR:Lcom/intowow/sdk/AdError;


# instance fields
.field final a:Ljava/lang/String;

.field final b:I


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .line 5
    new-instance v0, Lcom/intowow/sdk/AdError;

    const-string v1, "Network Error"

    const/16 v2, 0x64

    invoke-direct {v0, v2, v1}, Lcom/intowow/sdk/AdError;-><init>(ILjava/lang/String;)V

    sput-object v0, Lcom/intowow/sdk/AdError;->NETWORK_ERROR:Lcom/intowow/sdk/AdError;

    .line 6
    new-instance v0, Lcom/intowow/sdk/AdError;

    const-string v1, "Server Error"

    const/16 v2, 0x65

    invoke-direct {v0, v2, v1}, Lcom/intowow/sdk/AdError;-><init>(ILjava/lang/String;)V

    sput-object v0, Lcom/intowow/sdk/AdError;->SERVER_ERROR:Lcom/intowow/sdk/AdError;

    .line 7
    new-instance v0, Lcom/intowow/sdk/AdError;

    const-string v1, "Internal Error"

    const/16 v2, 0x66

    invoke-direct {v0, v2, v1}, Lcom/intowow/sdk/AdError;-><init>(ILjava/lang/String;)V

    sput-object v0, Lcom/intowow/sdk/AdError;->INTERNAL_ERROR:Lcom/intowow/sdk/AdError;

    .line 8
    new-instance v0, Lcom/intowow/sdk/AdError;

    const-string v1, "No Fill Error"

    const/16 v2, 0x67

    invoke-direct {v0, v2, v1}, Lcom/intowow/sdk/AdError;-><init>(ILjava/lang/String;)V

    sput-object v0, Lcom/intowow/sdk/AdError;->NO_FILL_ERROR:Lcom/intowow/sdk/AdError;

    .line 9
    new-instance v0, Lcom/intowow/sdk/AdError;

    const-string v1, "SDK Init Not Ready Error"

    const/16 v2, 0x68

    invoke-direct {v0, v2, v1}, Lcom/intowow/sdk/AdError;-><init>(ILjava/lang/String;)V

    sput-object v0, Lcom/intowow/sdk/AdError;->SDK_INIT_NOT_READY_ERROR:Lcom/intowow/sdk/AdError;

    return-void
.end method

.method public constructor <init>(ILjava/lang/String;)V
    .locals 0

    .line 20
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 21
    iput p1, p0, Lcom/intowow/sdk/AdError;->b:I

    .line 22
    iput-object p2, p0, Lcom/intowow/sdk/AdError;->a:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public getErrorCode()I
    .locals 1

    .line 40
    iget v0, p0, Lcom/intowow/sdk/AdError;->b:I

    return v0
.end method

.method public getErrorMessage()Ljava/lang/String;
    .locals 1

    .line 31
    iget-object v0, p0, Lcom/intowow/sdk/AdError;->a:Ljava/lang/String;

    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    const-string v0, "[%d] %s"

    const/4 v1, 0x2

    .line 48
    new-array v1, v1, [Ljava/lang/Object;

    iget v2, p0, Lcom/intowow/sdk/AdError;->b:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    const/4 v3, 0x0

    aput-object v2, v1, v3

    iget-object v2, p0, Lcom/intowow/sdk/AdError;->a:Ljava/lang/String;

    const/4 v3, 0x1

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
