|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException retrofit.RetrofitError
public class RetrofitError
Method Summary | |
---|---|
static RetrofitError |
conversionError(String url,
Response response,
Converter converter,
Type successType,
ConversionException exception)
|
Object |
getBody()
HTTP response body converted to the type declared by either the interface method return type or the generic type of the supplied Callback parameter. |
Object |
getBodyAs(Type type)
HTTP response body converted to specified type . |
Response |
getResponse()
Response object containing status code, headers, body, etc. |
String |
getUrl()
The request URL which produced the error. |
static RetrofitError |
httpError(String url,
Response response,
Converter converter,
Type successType)
|
boolean |
isNetworkError()
Whether or not this error was the result of a network error. |
static RetrofitError |
networkError(String url,
IOException exception)
|
static RetrofitError |
unexpectedError(String url,
Throwable exception)
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RetrofitError networkError(String url, IOException exception)
public static RetrofitError conversionError(String url, Response response, Converter converter, Type successType, ConversionException exception)
public static RetrofitError httpError(String url, Response response, Converter converter, Type successType)
public static RetrofitError unexpectedError(String url, Throwable exception)
public String getUrl()
public Response getResponse()
public boolean isNetworkError()
public Object getBody()
Callback
parameter.
public Object getBodyAs(Type type)
type
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |