Serializablepublic class ErrorResponseException
extends com.microsoft.rest.RestException
| Constructor | Description |
|---|---|
ErrorResponseException(String message,
retrofit2.Response<okhttp3.ResponseBody> response) |
Initializes a new instance of the ErrorResponseException class.
|
ErrorResponseException(String message,
retrofit2.Response<okhttp3.ResponseBody> response,
ErrorResponse body) |
Initializes a new instance of the ErrorResponseException class.
|
| Modifier and Type | Method | Description |
|---|---|---|
ErrorResponse |
body() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response)
message - the exception message or the response content if a message is not availableresponse - the HTTP responsepublic ErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, ErrorResponse body)
message - the exception message or the response content if a message is not availableresponse - the HTTP responsebody - the deserialized response bodypublic ErrorResponse body()
body in class com.microsoft.rest.RestException /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/