Enum Class AmazonS3APIErrorCodes

java.lang.Object
java.lang.Enum<AmazonS3APIErrorCodes>
fr.gouv.vitam.common.storage.s3.AmazonS3APIErrorCodes
All Implemented Interfaces:
Serializable, Comparable<AmazonS3APIErrorCodes>, Constable

public enum AmazonS3APIErrorCodes extends Enum<AmazonS3APIErrorCodes>
List of error codes as defined by Amazon's S3 API and used by Amazon S3 connector in Vitam.
  • Enum Constant Details

    • BUCKET_ALREADY_EXISTS

      public static final AmazonS3APIErrorCodes BUCKET_ALREADY_EXISTS
      Error for case when bucket already exists without acl
    • BUCKET_ALREADY_OWNED_BY_YOU

      public static final AmazonS3APIErrorCodes BUCKET_ALREADY_OWNED_BY_YOU
      Error for case when bucket already exists with acl
    • NO_SUCH_BUCKET

      public static final AmazonS3APIErrorCodes NO_SUCH_BUCKET
      Error when bucket does not exists
    • NO_SUCH_KEY

      public static final AmazonS3APIErrorCodes NO_SUCH_KEY
      Error when object does not exists
    • NOT_FOUND

      public static final AmazonS3APIErrorCodes NOT_FOUND
      Error when bucket or object does not exists
  • Method Details

    • values

      public static AmazonS3APIErrorCodes[] 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

      public static AmazonS3APIErrorCodes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorCode

      public String getErrorCode()
      Gets the errorCode
      Returns:
      errorCode