public class HttpResponseException extends AzureException
| Constructor and Description |
|---|
HttpResponseException(String message,
HttpResponse response)
Initializes a new instance of the
HttpResponseException class. |
HttpResponseException(String message,
HttpResponse response,
Object value)
Initializes a new instance of the
HttpResponseException class. |
HttpResponseException(String message,
HttpResponse response,
Throwable cause)
Initializes a new instance of the
HttpResponseException class. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
getResponse()
Gets the associated HTTP response that caused the exception.
|
Object |
getValue()
Gets the deserialized HTTP response value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpResponseException(String message, HttpResponse response)
HttpResponseException class.message - The exception message or the response content if a message is not available.response - The HTTP response associated with this exception.public HttpResponseException(String message, HttpResponse response, Object value)
HttpResponseException class.message - The exception message or the response content if a message is not available.response - The HTTP response associated with this exception.value - The deserialized response value.public HttpResponseException(String message, HttpResponse response, Throwable cause)
HttpResponseException class.message - The exception message or the response content if a message is not available.response - The HTTP response associated with this exception.cause - The Throwable which caused the creation of this exception.public HttpResponse getResponse()
public Object getValue()
Copyright © 2019 Microsoft Corporation. All rights reserved.