public class ANError
extends java.lang.Exception
| Constructor and Description |
|---|
ANError() |
ANError(okhttp3.Response response) |
ANError(okhttp3.Response response,
java.lang.Throwable throwable) |
ANError(java.lang.String message) |
ANError(java.lang.String message,
okhttp3.Response response) |
ANError(java.lang.String message,
okhttp3.Response response,
java.lang.Throwable throwable) |
ANError(java.lang.String message,
java.lang.Throwable throwable) |
ANError(java.lang.Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getErrorAsObject(java.lang.Class<T> objectClass) |
java.lang.String |
getErrorBody() |
int |
getErrorCode() |
java.lang.String |
getErrorDetail() |
okhttp3.Response |
getResponse() |
void |
setCancellationMessageInError() |
void |
setErrorBody(java.lang.String errorBody) |
void |
setErrorCode(int errorCode) |
void |
setErrorDetail(java.lang.String errorDetail) |
public ANError()
public ANError(okhttp3.Response response)
public ANError(java.lang.String message)
public ANError(java.lang.String message,
okhttp3.Response response)
public ANError(java.lang.String message,
java.lang.Throwable throwable)
public ANError(java.lang.String message,
okhttp3.Response response,
java.lang.Throwable throwable)
public ANError(okhttp3.Response response,
java.lang.Throwable throwable)
public ANError(java.lang.Throwable throwable)
public okhttp3.Response getResponse()
public void setErrorDetail(java.lang.String errorDetail)
public java.lang.String getErrorDetail()
public void setErrorCode(int errorCode)
public int getErrorCode()
public void setCancellationMessageInError()
public java.lang.String getErrorBody()
public void setErrorBody(java.lang.String errorBody)
public <T> T getErrorAsObject(java.lang.Class<T> objectClass)