Freigeben über


DocumentIntelligenceError Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.DocumentIntelligenceError

Implements

public final class DocumentIntelligenceError
implements JsonSerializable<DocumentIntelligenceError>

The error object.

Method Summary

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

Reads an instance of DocumentIntelligenceError from the JsonReader.

String getCode()

Get the code property: One of a server-defined set of error codes.

List<DocumentIntelligenceError> getDetails()

Get the details property: An array of details about specific errors that led to this reported error.

DocumentIntelligenceInnerError getInnerError()

Get the innerError property: An object containing more specific information than the current object about the error.

String getMessage()

Get the message property: A human-readable representation of the error.

String getTarget()

Get the target property: The target of the error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentIntelligenceError fromJson(JsonReader jsonReader)

Reads an instance of DocumentIntelligenceError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentIntelligenceError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCode

public String getCode()

Get the code property: One of a server-defined set of error codes.

Returns:

the code value.

getDetails

public List getDetails()

Get the details property: An array of details about specific errors that led to this reported error.

Returns:

the details value.

getInnerError

public DocumentIntelligenceInnerError getInnerError()

Get the innerError property: An object containing more specific information than the current object about the error.

Returns:

the innerError value.

getMessage

public String getMessage()

Get the message property: A human-readable representation of the error.

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The target of the error.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to