Enum MemoryException.ErrorCodes
- java.lang.Object
-
- java.lang.Enum<MemoryException.ErrorCodes>
-
- com.microsoft.semantickernel.memory.MemoryException.ErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<MemoryException.ErrorCodes>
- Enclosing class:
- MemoryException
public static enum MemoryException.ErrorCodes extends Enum<MemoryException.ErrorCodes>
Semantic kernel memory error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTEMPTED_TO_ACCESS_NONEXISTENT_COLLECTIONAttempted to access a memory collection that does not exist.FAILED_TO_CREATE_COLLECTIONFailed to create collection.FAILED_TO_DELETE_COLLECTIONFailed to delete collection.UNABLE_TO_DESERIALIZE_METADATAUnable to construct memory from serialized metadata.UNKNOWNUnknown error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets the error message.static MemoryException.ErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static MemoryException.ErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final MemoryException.ErrorCodes UNKNOWN
Unknown error.
-
FAILED_TO_CREATE_COLLECTION
public static final MemoryException.ErrorCodes FAILED_TO_CREATE_COLLECTION
Failed to create collection.
-
FAILED_TO_DELETE_COLLECTION
public static final MemoryException.ErrorCodes FAILED_TO_DELETE_COLLECTION
Failed to delete collection.
-
UNABLE_TO_DESERIALIZE_METADATA
public static final MemoryException.ErrorCodes UNABLE_TO_DESERIALIZE_METADATA
Unable to construct memory from serialized metadata.
-
ATTEMPTED_TO_ACCESS_NONEXISTENT_COLLECTION
public static final MemoryException.ErrorCodes ATTEMPTED_TO_ACCESS_NONEXISTENT_COLLECTION
Attempted to access a memory collection that does not exist.
-
-
Method Detail
-
values
public static MemoryException.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 (MemoryException.ErrorCodes c : MemoryException.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 MemoryException.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()
Gets the error message.- Returns:
- The error message.
-
-