Enum ConflictException.Reason
- java.lang.Object
-
- java.lang.Enum<ConflictException.Reason>
-
- com.kii.cloud.storage.exception.app.ConflictException.Reason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConflictException.Reason>
- Enclosing class:
- ConflictException
public static enum ConflictException.Reason extends java.lang.Enum<ConflictException.Reason>
Reason of failure.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description __UNKNOWN__
ACL_ALREADY_EXISTS
BUCKET_ALREADY_EXISTS
GROUP_ALREADY_EXISTS
INVALID_STATUS
OBJECT_ALREADY_EXISTS
OBJECT_VERSION_IS_STALE
USER_ALREADY_EXISTS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConflictException.Reason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConflictException.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACL_ALREADY_EXISTS
public static final ConflictException.Reason ACL_ALREADY_EXISTS
-
BUCKET_ALREADY_EXISTS
public static final ConflictException.Reason BUCKET_ALREADY_EXISTS
-
OBJECT_VERSION_IS_STALE
public static final ConflictException.Reason OBJECT_VERSION_IS_STALE
-
OBJECT_ALREADY_EXISTS
public static final ConflictException.Reason OBJECT_ALREADY_EXISTS
-
USER_ALREADY_EXISTS
public static final ConflictException.Reason USER_ALREADY_EXISTS
-
INVALID_STATUS
public static final ConflictException.Reason INVALID_STATUS
-
GROUP_ALREADY_EXISTS
public static final ConflictException.Reason GROUP_ALREADY_EXISTS
-
__UNKNOWN__
public static final ConflictException.Reason __UNKNOWN__
-
-
Method Detail
-
values
public static ConflictException.Reason[] 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 (ConflictException.Reason c : ConflictException.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConflictException.Reason 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
-
-