30 lines
816 B
Java
30 lines
816 B
Java
package okhttp3.internal.connection;
|
|
|
|
import java.io.IOException;
|
|
import okhttp3.internal.Util;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class RouteException extends RuntimeException {
|
|
private IOException firstException;
|
|
private IOException lastException;
|
|
|
|
public RouteException(IOException iOException) {
|
|
super(iOException);
|
|
this.firstException = iOException;
|
|
this.lastException = iOException;
|
|
}
|
|
|
|
public void addConnectException(IOException iOException) {
|
|
Util.addSuppressedIfPossible(this.firstException, iOException);
|
|
this.lastException = iOException;
|
|
}
|
|
|
|
public IOException getFirstConnectException() {
|
|
return this.firstException;
|
|
}
|
|
|
|
public IOException getLastConnectException() {
|
|
return this.lastException;
|
|
}
|
|
}
|