Class RequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.squareup.okhttp.internal.http.RequestException
-
- All Implemented Interfaces:
Serializable
public final class RequestException extends Exception
Indicates a problem with interpreting a request. It may indicate there was a problem with the request itself, or the environment being used to interpret the request (network failure, etc.).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestException(IOException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOExceptiongetCause()Returns the cause of thisThrowable, ornullif there is no cause.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RequestException
public RequestException(IOException cause)
-
-
Method Detail
-
getCause
public IOException getCause()
Description copied from class:ThrowableReturns the cause of thisThrowable, ornullif there is no cause.
-
-