public final class CloudException extends HttpResponseException
Constructor and Description |
---|
CloudException(String message,
HttpResponse response)
Initializes a new instance of the CloudException class.
|
CloudException(String message,
HttpResponse response,
CloudError body)
Initializes a new instance of the CloudException class.
|
Modifier and Type | Method and Description |
---|---|
CloudError |
getValue()
Gets the deserialized HTTP response value.
|
String |
toString() |
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public CloudException(String message, HttpResponse response)
message
- the exception message or the response content if a message is not availableresponse
- the HTTP responsepublic CloudException(String message, HttpResponse 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 getValue()
HttpResponseException
getValue
in class HttpResponseException
Copyright © 2020 Microsoft Corporation. All rights reserved.