Share via


KnowledgeBaseErrorDetail Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.KnowledgeBaseErrorDetail

Implements

public final class KnowledgeBaseErrorDetail
implements JsonSerializable<KnowledgeBaseErrorDetail>

The error details.

Constructor Summary

Constructor Description
KnowledgeBaseErrorDetail()

Creates an instance of KnowledgeBaseErrorDetail class.

Method Summary

Modifier and Type Method and Description
static KnowledgeBaseErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeBaseErrorDetail from the JsonReader.

List<KnowledgeBaseErrorAdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: The error additional info.

String getCode()

Get the code property: The error code.

List<KnowledgeBaseErrorDetail> getDetails()

Get the details property: The error details.

String getMessage()

Get the message property: The error message.

String getTarget()

Get the target property: The error target.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

KnowledgeBaseErrorDetail

public KnowledgeBaseErrorDetail()

Creates an instance of KnowledgeBaseErrorDetail class.

Method Details

fromJson

public static KnowledgeBaseErrorDetail fromJson(JsonReader jsonReader)

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.

getAdditionalInfo

public List<KnowledgeBaseErrorAdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: The error additional info.

Returns:

the additionalInfo value.

getCode

public String getCode()

Get the code property: The error code.

Returns:

the code value.

getDetails

public List<KnowledgeBaseErrorDetail> getDetails()

Get the details property: The error details.

Returns:

the details 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to