Class ErrorDetail

java.lang.Object
com.azure.maps.render.models.ErrorDetail
All Implemented Interfaces:
com.azure.json.JsonSerializable<ErrorDetail>

public final class ErrorDetail extends Object implements com.azure.json.JsonSerializable<ErrorDetail>
The error detail.
  • Constructor Details

    • ErrorDetail

      public ErrorDetail()
      Creates an instance of ErrorDetail class.
  • Method Details

    • getCode

      public String getCode()
      Get the code property: The error code.
      Returns:
      the code value.
    • getMessage

      public String getMessage()
      Get the message property: The error message.
      Returns:
      the message value.
    • getTarget

      public String getTarget()
      Get the target property: The error target.
      Returns:
      the target value.
    • getDetails

      public List<ErrorDetail> getDetails()
      Get the details property: The error details.
      Returns:
      the details value.
    • getAdditionalInfo

      public List<ErrorAdditionalInfo> getAdditionalInfo()
      Get the additionalInfo property: The error additional info.
      Returns:
      the additionalInfo value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ErrorDetail>
      Throws:
      IOException
    • fromJson

      public static ErrorDetail fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ErrorDetail from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ErrorDetail 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 ErrorDetail.