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

    Constructors
    Constructor
    Description
    Creates an instance of DefaultErrorResponseError class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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
    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

      public String getInnererror()
      Get the innererror property: More information to debug error.
      Returns:
      the innererror value.
    • getAdditionalInfo

      public List<com.azure.core.management.exception.AdditionalInfo> getAdditionalInfo()
      Get the additionalInfo property: Additional info for the error.
      Overrides:
      getAdditionalInfo in class com.azure.core.management.exception.ManagementError
      Returns:
      the additionalInfo value.
    • getDetails

      public List<com.azure.core.management.exception.ManagementError> getDetails()
      Get the details property: Details for the error.
      Overrides:
      getDetails in class com.azure.core.management.exception.ManagementError
      Returns:
      the details value.
    • getTarget

      public String getTarget()
      Get the target property: The target of the error.
      Overrides:
      getTarget in class com.azure.core.management.exception.ManagementError
      Returns:
      the target value.
    • getMessage

      public String getMessage()
      Get the message property: The error message parsed from the body of the http error response.
      Overrides:
      getMessage in class com.azure.core.management.exception.ManagementError
      Returns:
      the message value.
    • getCode

      public String getCode()
      Get the code property: The error code parsed from the body of the http error response.
      Overrides:
      getCode in class com.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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>
      Overrides:
      toJson in class com.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.