Package com.github.ambry.store
Enum StoreErrorCodes
- java.lang.Object
-
- java.lang.Enum<StoreErrorCodes>
-
- com.github.ambry.store.StoreErrorCodes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StoreErrorCodes>
public enum StoreErrorCodes extends java.lang.Enum<StoreErrorCodes>
The error codes that the store returns
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StoreErrorCodes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StoreErrorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID_Not_Found
public static final StoreErrorCodes ID_Not_Found
-
TTL_Expired
public static final StoreErrorCodes TTL_Expired
-
ID_Deleted
public static final StoreErrorCodes ID_Deleted
-
IOError
public static final StoreErrorCodes IOError
-
Initialization_Error
public static final StoreErrorCodes Initialization_Error
-
Already_Exist
public static final StoreErrorCodes Already_Exist
-
Store_Not_Started
public static final StoreErrorCodes Store_Not_Started
-
Store_Already_Started
public static final StoreErrorCodes Store_Already_Started
-
Store_Shutting_Down
public static final StoreErrorCodes Store_Shutting_Down
-
Illegal_Index_Operation
public static final StoreErrorCodes Illegal_Index_Operation
-
Illegal_Index_State
public static final StoreErrorCodes Illegal_Index_State
-
Index_Creation_Failure
public static final StoreErrorCodes Index_Creation_Failure
-
Index_Version_Error
public static final StoreErrorCodes Index_Version_Error
-
Authorization_Failure
public static final StoreErrorCodes Authorization_Failure
-
Unknown_Error
public static final StoreErrorCodes Unknown_Error
-
Already_Updated
public static final StoreErrorCodes Already_Updated
-
Update_Not_Allowed
public static final StoreErrorCodes Update_Not_Allowed
-
File_Not_Found
public static final StoreErrorCodes File_Not_Found
-
Channel_Closed
public static final StoreErrorCodes Channel_Closed
-
Life_Version_Conflict
public static final StoreErrorCodes Life_Version_Conflict
-
ID_Not_Deleted
public static final StoreErrorCodes ID_Not_Deleted
-
ID_Undeleted
public static final StoreErrorCodes ID_Undeleted
-
ID_Deleted_Permanently
public static final StoreErrorCodes ID_Deleted_Permanently
-
-
Method Detail
-
values
public static StoreErrorCodes[] 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 (StoreErrorCodes c : StoreErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreErrorCodes valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-