public class RatpackRetrofitCallException
extends java.lang.Exception
Response
and the request is not successful.Constructor and Description |
---|
RatpackRetrofitCallException(Call<?> call,
java.lang.String error)
Deprecated.
since 1.6.0
|
RatpackRetrofitCallException(okhttp3.Request request,
Response<?> response)
Create a wrapped Retrofit exception
|
Modifier and Type | Method and Description |
---|---|
static RatpackRetrofitCallException |
cause(Call<?> call,
Response<?> response) |
ReceivedResponse |
getResponse()
Get the underlying response that resulted in the exception for this HTTP request.
|
@Deprecated public RatpackRetrofitCallException(Call<?> call, java.lang.String error)
call
- the Retrofit Call
to wrap.error
- the error messageRatpackRetrofitCallException(Request, Response)
public ReceivedResponse getResponse()
public static RatpackRetrofitCallException cause(Call<?> call, Response<?> response) throws java.io.IOException
java.io.IOException