Class RouteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.squareup.okhttp.internal.http.RouteException
-
- All Implemented Interfaces:
Serializable
public final class RouteException extends Exception
An exception thrown to indicate a problem connecting via a single Route. Multiple attempts may have been made with alternative protocols, none of which were successful.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RouteException(IOException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectException(IOException e)IOExceptiongetLastConnectException()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RouteException
public RouteException(IOException cause)
-
-
Method Detail
-
getLastConnectException
public IOException getLastConnectException()
-
addConnectException
public void addConnectException(IOException e)
-
-