Package com.github.ambry.server
Enum ServerErrorCode
- java.lang.Object
-
- java.lang.Enum<ServerErrorCode>
-
- com.github.ambry.server.ServerErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerErrorCode>
public enum ServerErrorCode extends java.lang.Enum<ServerErrorCode>
The error codes that the server returns on a failed request The order of these enums should not be changed since their relative position goes into the serialized form of requests/responses
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
No_Error
public static final ServerErrorCode No_Error
-
IO_Error
public static final ServerErrorCode IO_Error
-
Blob_Not_Found
public static final ServerErrorCode Blob_Not_Found
-
Blob_Deleted
public static final ServerErrorCode Blob_Deleted
-
Blob_Expired
public static final ServerErrorCode Blob_Expired
-
Blob_Already_Exists
public static final ServerErrorCode Blob_Already_Exists
-
Data_Corrupt
public static final ServerErrorCode Data_Corrupt
-
Partition_Unknown
public static final ServerErrorCode Partition_Unknown
-
Disk_Unavailable
public static final ServerErrorCode Disk_Unavailable
-
Partition_ReadOnly
public static final ServerErrorCode Partition_ReadOnly
-
Unknown_Error
public static final ServerErrorCode Unknown_Error
-
Temporarily_Disabled
public static final ServerErrorCode Temporarily_Disabled
-
Bad_Request
public static final ServerErrorCode Bad_Request
-
Retry_After_Backoff
public static final ServerErrorCode Retry_After_Backoff
-
Blob_Already_Updated
public static final ServerErrorCode Blob_Already_Updated
-
Blob_Update_Not_Allowed
public static final ServerErrorCode Blob_Update_Not_Allowed
-
Replica_Unavailable
public static final ServerErrorCode Replica_Unavailable
-
Blob_Authorization_Failure
public static final ServerErrorCode Blob_Authorization_Failure
-
Blob_Life_Version_Conflict
public static final ServerErrorCode Blob_Life_Version_Conflict
-
Blob_Not_Deleted
public static final ServerErrorCode Blob_Not_Deleted
-
Blob_Already_Undeleted
public static final ServerErrorCode Blob_Already_Undeleted
-
Blob_Deleted_Permanently
public static final ServerErrorCode Blob_Deleted_Permanently
-
-
Method Detail
-
values
public static ServerErrorCode[] 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 (ServerErrorCode c : ServerErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerErrorCode 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
-
-