public class DefaultErrorResponseException extends RestException
| Constructor and Description |
|---|
DefaultErrorResponseException(String message,
retrofit2.Response<okhttp3.ResponseBody> response)
Initializes a new instance of the DefaultErrorResponseException class.
|
DefaultErrorResponseException(String message,
retrofit2.Response<okhttp3.ResponseBody> response,
DefaultErrorResponse body)
Initializes a new instance of the DefaultErrorResponseException class.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultErrorResponse |
body() |
responseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DefaultErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response)
message - the exception message or the response content if a message is not availableresponse - the HTTP responsepublic DefaultErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, DefaultErrorResponse body)
message - the exception message or the response content if a message is not availableresponse - the HTTP responsebody - the deserialized response bodypublic DefaultErrorResponse body()
body in class RestExceptionCopyright © 2019. All rights reserved.