Error Class

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

Implements

public final class Error
implements JsonSerializable<Error>

The error object.

Method Summary

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

Reads an instance of Error from the JsonReader.

String getCode()

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

List<Error> getDetails()

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

InnerError 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 Error fromJson(JsonReader jsonReader)

Reads an instance of Error from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Error 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<Error> getDetails()

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

Returns:

the details value.

getInnererror

public InnerError 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