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