public final class CloudErrorException
extends com.azure.core.exception.HttpResponseException
Constructor and Description |
---|
CloudErrorException(String message,
com.azure.core.http.HttpResponse response)
Initializes a new instance of the CloudErrorException class.
|
CloudErrorException(String message,
com.azure.core.http.HttpResponse response,
CloudError value)
Initializes a new instance of the CloudErrorException class.
|
Modifier and Type | Method and Description |
---|---|
CloudError |
getValue() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CloudErrorException(String message, com.azure.core.http.HttpResponse response)
message
- the exception message or the response content if a message is not available.response
- the HTTP response.public CloudErrorException(String message, com.azure.core.http.HttpResponse response, CloudError value)
message
- the exception message or the response content if a message is not available.response
- the HTTP response.value
- the deserialized response value.public CloudError getValue()
getValue
in class com.azure.core.exception.HttpResponseException
Copyright © 2021 Microsoft Corporation. All rights reserved.