Share via


VectorStoreFileErrorCode Class

public final class VectorStoreFileErrorCode
extends ExpandableStringEnum<VectorStoreFileErrorCode>

Error code variants for vector store file processing.

Field Summary

Modifier and Type Field and Description
static final VectorStoreFileErrorCode INVALID_FILE

The file is not valid.

static final VectorStoreFileErrorCode SERVER_ERROR

An server error occurred.

static final VectorStoreFileErrorCode UNSUPPORTED_FILE

The file is of unsupported type.

Constructor Summary

Constructor Description
VectorStoreFileErrorCode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorStoreFileErrorCode value.

Method Summary

Modifier and Type Method and Description
static VectorStoreFileErrorCode fromString(String name)

Creates or finds a VectorStoreFileErrorCode from its string representation.

static Collection<VectorStoreFileErrorCode> values()

Gets known VectorStoreFileErrorCode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

INVALID_FILE

public static final VectorStoreFileErrorCode INVALID_FILE

The file is not valid.

SERVER_ERROR

public static final VectorStoreFileErrorCode SERVER_ERROR

An server error occurred.

UNSUPPORTED_FILE

public static final VectorStoreFileErrorCode UNSUPPORTED_FILE

The file is of unsupported type.

Constructor Details

VectorStoreFileErrorCode

@Deprecated
public VectorStoreFileErrorCode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorStoreFileErrorCode value.

Method Details

fromString

public static VectorStoreFileErrorCode fromString(String name)

Creates or finds a VectorStoreFileErrorCode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorStoreFileErrorCode.

values

public static Collection<VectorStoreFileErrorCode> values()

Gets known VectorStoreFileErrorCode values.

Returns:

known VectorStoreFileErrorCode values.

Applies to