RouteException.java
1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.squareup.okhttp.internal.http;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public final class RouteException
extends Exception
{
private static final Method addSuppressedExceptionMethod;
private IOException lastException;
static
{
try
{
Method localMethod = Throwable.class.getDeclaredMethod("addSuppressed", new Class[] { Throwable.class });
addSuppressedExceptionMethod = localMethod;
return;
}
catch (Exception localException)
{
for (;;)
{
Object localObject = null;
}
}
}
public RouteException(IOException paramIOException)
{
super(paramIOException);
this.lastException = paramIOException;
}
private void addSuppressedIfPossible(IOException paramIOException1, IOException paramIOException2)
{
if (addSuppressedExceptionMethod != null) {}
try
{
addSuppressedExceptionMethod.invoke(paramIOException1, new Object[] { paramIOException2 });
return;
}
catch (IllegalAccessException paramIOException1) {}catch (InvocationTargetException paramIOException1) {}
}
public final void addConnectException(IOException paramIOException)
{
addSuppressedIfPossible(paramIOException, this.lastException);
this.lastException = paramIOException;
}
public final IOException getLastConnectException()
{
return this.lastException;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/internal/http/RouteException.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/