Class DefaultErrorResponseError
java.lang.Object
com.azure.core.management.exception.ManagementError
com.azure.resourcemanager.appservice.models.DefaultErrorResponseError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>
public final class DefaultErrorResponseError
extends com.azure.core.management.exception.ManagementError
App Service error response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DefaultErrorResponseError class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultErrorResponseError
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DefaultErrorResponseError from the JsonReader.List
<com.azure.core.management.exception.AdditionalInfo> Get the additionalInfo property: Additional info for the error.getCode()
Get the code property: The error code parsed from the body of the http error response.List
<com.azure.core.management.exception.ManagementError> Get the details property: Details for the error.Get the innererror property: More information to debug error.Get the message property: The error message parsed from the body of the http error response.Get the target property: The target of the error.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Methods inherited from class com.azure.core.management.exception.ManagementError
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DefaultErrorResponseError
public DefaultErrorResponseError()Creates an instance of DefaultErrorResponseError class.
-
-
Method Details
-
getInnererror
Get the innererror property: More information to debug error.- Returns:
- the innererror value.
-
getAdditionalInfo
Get the additionalInfo property: Additional info for the error.- Overrides:
getAdditionalInfo
in classcom.azure.core.management.exception.ManagementError
- Returns:
- the additionalInfo value.
-
getDetails
Get the details property: Details for the error.- Overrides:
getDetails
in classcom.azure.core.management.exception.ManagementError
- Returns:
- the details value.
-
getTarget
Get the target property: The target of the error.- Overrides:
getTarget
in classcom.azure.core.management.exception.ManagementError
- Returns:
- the target value.
-
getMessage
Get the message property: The error message parsed from the body of the http error response.- Overrides:
getMessage
in classcom.azure.core.management.exception.ManagementError
- Returns:
- the message value.
-
getCode
Get the code property: The error code parsed from the body of the http error response.- Overrides:
getCode
in classcom.azure.core.management.exception.ManagementError
- Returns:
- the code value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>
- Overrides:
toJson
in classcom.azure.core.management.exception.ManagementError
- Throws:
IOException
-
fromJson
public static DefaultErrorResponseError fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DefaultErrorResponseError from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DefaultErrorResponseError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the DefaultErrorResponseError.
-