package okhttp3.internal.connection;

import java.io.IOException;
import kotlin.jvm.internal.l;
import n1.AbstractC0645a;

/* JADX INFO: loaded from: classes2.dex */
public final class RouteException extends RuntimeException {
    private final IOException firstConnectException;
    private IOException lastConnectException;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public RouteException(IOException firstConnectException) {
        super(firstConnectException);
        l.e(firstConnectException, "firstConnectException");
        this.firstConnectException = firstConnectException;
        this.lastConnectException = firstConnectException;
    }

    public final void addConnectException(IOException e2) {
        l.e(e2, "e");
        AbstractC0645a.a(this.firstConnectException, e2);
        this.lastConnectException = e2;
    }

    public final IOException getFirstConnectException() {
        return this.firstConnectException;
    }

    public final IOException getLastConnectException() {
        return this.lastConnectException;
    }
}
