Class KnowledgeBaseErrorDetail

java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeBaseErrorDetail
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseErrorDetail>

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

    • KnowledgeBaseErrorDetail

      public KnowledgeBaseErrorDetail()
      Creates an instance of KnowledgeBaseErrorDetail 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<KnowledgeBaseErrorDetail> getDetails()
      Get the details property: The error details.
      Returns:
      the details value.
    • getAdditionalInfo

      public List<KnowledgeBaseErrorAdditionalInfo> 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<KnowledgeBaseErrorDetail>
      Throws:
      IOException
    • fromJson

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