Share via


VectorStoreFileError Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.VectorStoreFileError

Implements

public final class VectorStoreFileError
implements JsonSerializable<VectorStoreFileError>

Details on the error that may have occurred while processing a file for this vector store.

Method Summary

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

Reads an instance of VectorStoreFileError from the JsonReader.

VectorStoreFileErrorCode getCode()

Get the code property: One of `server_error` or `rate_limit_exceeded`.

String getMessage()

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static VectorStoreFileError fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreFileError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorStoreFileError 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 VectorStoreFileErrorCode getCode()

Get the code property: One of `server_error` or `rate_limit_exceeded`.

Returns:

the code value.

getMessage

public String getMessage()

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

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to