public final class ErrorContractException
extends com.azure.core.exception.HttpResponseException
| Constructor and Description |
|---|
ErrorContractException(String message,
com.azure.core.http.HttpResponse response)
Initializes a new instance of the ErrorContractException class.
|
ErrorContractException(String message,
com.azure.core.http.HttpResponse response,
ErrorContract value)
Initializes a new instance of the ErrorContractException class.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorContract |
getValue() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorContractException(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 ErrorContractException(String message, com.azure.core.http.HttpResponse response, ErrorContract 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 ErrorContract getValue()
getValue in class com.azure.core.exception.HttpResponseExceptionCopyright © 2021 Microsoft Corporation. All rights reserved.