Class S3Error


  • public class S3Error
    extends java.lang.Object
    Error response defined in http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html. It will be encoded into an XML string to be returned as an error response for the REST call.
    • Constructor Summary

      Constructors 
      Constructor Description
      S3Error()
      Creates an S3Error.
      S3Error​(java.lang.String resource, S3ErrorCode code)
      Creates a new Error.
    • Method Detail

      • getCode

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

        public java.lang.String getMessage()
        Returns:
        the error message
      • getRequestId

        public java.lang.String getRequestId()
        Returns:
        the request ID
      • getResource

        public java.lang.String getResource()
        Returns:
        the resource name
      • setCode

        public void setCode​(java.lang.String code)
        Parameters:
        code - the error code to set
      • setMessage

        public void setMessage​(java.lang.String message)
        Parameters:
        message - the error message to set
      • setRequestId

        public void setRequestId​(java.lang.String requestId)
        Parameters:
        requestId - the request ID to set
      • setResource

        public void setResource​(java.lang.String resource)
        Parameters:
        resource - the resource name to set