Class S3ErrorCode


  • public class S3ErrorCode
    extends java.lang.Object
    Error codes defined in http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html with API version 2006-03-01. Some error codes are customized.
    • Field Detail

      • BAD_DIGEST

        public static final S3ErrorCode BAD_DIGEST
      • BUCKET_ALREADY_EXISTS

        public static final S3ErrorCode BUCKET_ALREADY_EXISTS
      • BUCKET_NOT_EMPTY

        public static final S3ErrorCode BUCKET_NOT_EMPTY
      • INVALID_BUCKET_NAME

        public static final S3ErrorCode INVALID_BUCKET_NAME
      • INTERNAL_ERROR

        public static final S3ErrorCode INTERNAL_ERROR
      • NO_SUCH_BUCKET

        public static final S3ErrorCode NO_SUCH_BUCKET
      • NO_SUCH_KEY

        public static final S3ErrorCode NO_SUCH_KEY
      • NO_SUCH_UPLOAD

        public static final S3ErrorCode NO_SUCH_UPLOAD
      • PRECONDITION_FAILED

        public static final S3ErrorCode PRECONDITION_FAILED
      • INVALID_NESTED_BUCKET_NAME

        public static final S3ErrorCode INVALID_NESTED_BUCKET_NAME
    • Constructor Detail

      • S3ErrorCode

        public S3ErrorCode​(java.lang.String code,
                           java.lang.String description,
                           javax.ws.rs.core.Response.Status status)
        Constructs a new S3ErrorCode.
        Parameters:
        code - the error code defined in S3ErrorCode.Name
        description - the error description
        status - the HTTP status code for the error
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Returns:
        the error code
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description
      • getStatus

        public javax.ws.rs.core.Response.Status getStatus()
        Returns:
        the HTTP status