RouteException.smali
.class public final Lcom/squareup/okhttp/internal/http/RouteException;
.super Ljava/lang/Exception;
.source "RouteException.java"
# static fields
.field private static final bAP:Ljava/lang/reflect/Method;
# instance fields
.field private lastException:Ljava/io/IOException;
# direct methods
.method static constructor <clinit>()V
.registers 5
.prologue
.line 31
:try_start_0
const-class v0, Ljava/lang/Throwable;
const-string v1, "addSuppressed"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Ljava/lang/Throwable;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_f
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_f} :catch_13
move-result-object v0
.line 35
:goto_10
sput-object v0, Lcom/squareup/okhttp/internal/http/RouteException;->bAP:Ljava/lang/reflect/Method;
.line 36
return-void
.line 33
:catch_13
move-exception v0
const/4 v0, 0x0
goto :goto_10
.end method
.method public constructor <init>(Ljava/io/IOException;)V
.registers 2
.prologue
.line 40
invoke-direct {p0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/Throwable;)V
.line 41
iput-object p1, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
.line 42
return-void
.end method
# virtual methods
.method public final addConnectException(Ljava/io/IOException;)V
.registers 6
.prologue
.line 49
iget-object v0, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
.line 1054
sget-object v1, Lcom/squareup/okhttp/internal/http/RouteException;->bAP:Ljava/lang/reflect/Method;
if-eqz v1, :cond_11
.line 1056
:try_start_6
sget-object v1, Lcom/squareup/okhttp/internal/http/RouteException;->bAP:Ljava/lang/reflect/Method;
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object v0, v2, v3
invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_11
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_6 .. :try_end_11} :catch_16
.catch Ljava/lang/IllegalAccessException; {:try_start_6 .. :try_end_11} :catch_14
.line 50
:cond_11
:goto_11
iput-object p1, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
.line 51
return-void
:catch_14
move-exception v0
goto :goto_11
:catch_16
move-exception v0
goto :goto_11
.end method
.method public final getLastConnectException()Ljava/io/IOException;
.registers 2
.prologue
.line 45
iget-object v0, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
return-object v0
.end method