Enum AzureCognitiveSearchMemoryException.ErrorCodes
- java.lang.Object
-
- java.lang.Enum<AzureCognitiveSearchMemoryException.ErrorCodes>
-
- com.microsoft.semantickernel.connectors.memory.azurecognitivesearch.AzureCognitiveSearchMemoryException.ErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<AzureCognitiveSearchMemoryException.ErrorCodes>
- Enclosing class:
- AzureCognitiveSearchMemoryException
public static enum AzureCognitiveSearchMemoryException.ErrorCodes extends Enum<AzureCognitiveSearchMemoryException.ErrorCodes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_EMBEDDING_SIZEINVALID_INDEX_NAMEREAD_FAILUREUNKNOWN_ERRORWRITE_FAILURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()static AzureCognitiveSearchMemoryException.ErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static AzureCognitiveSearchMemoryException.ErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_ERROR
public static final AzureCognitiveSearchMemoryException.ErrorCodes UNKNOWN_ERROR
-
INVALID_EMBEDDING_SIZE
public static final AzureCognitiveSearchMemoryException.ErrorCodes INVALID_EMBEDDING_SIZE
-
INVALID_INDEX_NAME
public static final AzureCognitiveSearchMemoryException.ErrorCodes INVALID_INDEX_NAME
-
READ_FAILURE
public static final AzureCognitiveSearchMemoryException.ErrorCodes READ_FAILURE
-
WRITE_FAILURE
public static final AzureCognitiveSearchMemoryException.ErrorCodes WRITE_FAILURE
-
-
Method Detail
-
values
public static AzureCognitiveSearchMemoryException.ErrorCodes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AzureCognitiveSearchMemoryException.ErrorCodes c : AzureCognitiveSearchMemoryException.ErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AzureCognitiveSearchMemoryException.ErrorCodes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessage
public String getMessage()
-
-