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 Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeBaseErrorDetail class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeBaseErrorDetailfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeBaseErrorDetail from the JsonReader.Get the additionalInfo property: The error additional info.getCode()Get the code property: The error code.Get the details property: The error details.Get the message property: The error message.Get the target property: The error target.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeBaseErrorDetail
public KnowledgeBaseErrorDetail()Creates an instance of KnowledgeBaseErrorDetail class.
-
-
Method Details
-
getCode
-
getMessage
-
getTarget
-
getDetails
Get the details property: The error details.- Returns:
- the details value.
-
getAdditionalInfo
Get the additionalInfo property: The error additional info.- Returns:
- the additionalInfo value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-