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