Package org.jclouds.atmos.reference
Enum AtmosErrorCode
- java.lang.Object
-
- java.lang.Enum<AtmosErrorCode>
-
- org.jclouds.atmos.reference.AtmosErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<AtmosErrorCode>
public enum AtmosErrorCode extends Enum<AtmosErrorCode>
Atmos error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFLICTING_OPERATION
Operation aborted because of a conflicting operation in progess against the resource.DIRECTORY_NOT_EMPTY
The directory you are attempting to delete is not empty.OBJECT_NOT_FOUND
The requested object was not found.RESOURCE_ALREADY_EXISTS
The resource you are trying to create already exists.SERVER_BUSY
The server is busy.SIGNATURE_MISMATCH
There was a mismatch between the signature in the request and the signature as computed by the server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static AtmosErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AtmosErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFLICTING_OPERATION
public static final AtmosErrorCode CONFLICTING_OPERATION
Operation aborted because of a conflicting operation in progess against the resource.
-
DIRECTORY_NOT_EMPTY
public static final AtmosErrorCode DIRECTORY_NOT_EMPTY
The directory you are attempting to delete is not empty.
-
OBJECT_NOT_FOUND
public static final AtmosErrorCode OBJECT_NOT_FOUND
The requested object was not found.
-
RESOURCE_ALREADY_EXISTS
public static final AtmosErrorCode RESOURCE_ALREADY_EXISTS
The resource you are trying to create already exists.
-
SERVER_BUSY
public static final AtmosErrorCode SERVER_BUSY
The server is busy. Please try again.
-
SIGNATURE_MISMATCH
public static final AtmosErrorCode SIGNATURE_MISMATCH
There was a mismatch between the signature in the request and the signature as computed by the server.
-
-
Method Detail
-
values
public static AtmosErrorCode[] 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 (AtmosErrorCode c : AtmosErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AtmosErrorCode 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
-
getCode
public int getCode()
-
-