Package fr.gouv.vitam.common.storage.s3
Enum Class AmazonS3APIErrorCodes
- All Implemented Interfaces:
Serializable
,Comparable<AmazonS3APIErrorCodes>
,Constable
List of error codes as defined by Amazon's S3 API and used by Amazon S3
connector in Vitam.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionError for case when bucket already exists without aclError for case when bucket already exists with aclError when bucket does not existsError when object does not existsError when bucket or object does not exists -
Method Summary
Modifier and TypeMethodDescriptionGets the errorCodestatic AmazonS3APIErrorCodes
Returns the enum constant of this class with the specified name.static AmazonS3APIErrorCodes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUCKET_ALREADY_EXISTS
Error for case when bucket already exists without acl -
BUCKET_ALREADY_OWNED_BY_YOU
Error for case when bucket already exists with acl -
NO_SUCH_BUCKET
Error when bucket does not exists -
NO_SUCH_KEY
Error when object does not exists -
NOT_FOUND
Error when bucket or object does not exists
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getErrorCode
Gets the errorCode- Returns:
- errorCode
-