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