RouteException.smali
.class public final Lcom/squareup/okhttp/internal/http/RouteException;
.super Ljava/lang/Exception;
.source "RouteException.java"
# static fields
.field private static final addSuppressedExceptionMethod:Ljava/lang/reflect/Method;
# instance fields
.field private lastException:Ljava/io/IOException;
# direct methods
.method static constructor <clinit>()V
.registers 4
.line 1
:try_start_0
const-class v0, Ljava/lang/Throwable;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Class;
const/4 v2, 0x0
const-class v3, Ljava/lang/Throwable;
aput-object v3, v1, v2
:try_end_a
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_a} :catch_11
const-string v2, "addSuppressed"
:try_start_c
invoke-virtual {v0, v2, v1}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_10
.catch Ljava/lang/Exception; {:try_start_c .. :try_end_10} :catch_11
goto :goto_12
:catch_11
const/4 v0, 0x0
.line 2
:goto_12
sput-object v0, Lcom/squareup/okhttp/internal/http/RouteException;->addSuppressedExceptionMethod:Ljava/lang/reflect/Method;
return-void
.end method
.method public constructor <init>(Ljava/io/IOException;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/Throwable;)V
.line 2
iput-object p1, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
return-void
.end method
.method private addSuppressedIfPossible(Ljava/io/IOException;Ljava/io/IOException;)V
.registers 6
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/http/RouteException;->addSuppressedExceptionMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_d
const/4 v1, 0x1
.line 2
:try_start_5
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p2, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_d
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_5 .. :try_end_d} :catch_d
.catch Ljava/lang/IllegalAccessException; {:try_start_5 .. :try_end_d} :catch_d
:catch_d
:cond_d
return-void
.end method
# virtual methods
.method public addConnectException(Ljava/io/IOException;)V
.registers 3
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
invoke-direct {p0, p1, v0}, Lcom/squareup/okhttp/internal/http/RouteException;->addSuppressedIfPossible(Ljava/io/IOException;Ljava/io/IOException;)V
.line 2
iput-object p1, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
return-void
.end method
.method public getLastConnectException()Ljava/io/IOException;
.registers 2
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/http/RouteException;->lastException:Ljava/io/IOException;
return-object v0
.end method