Class S3ServiceException

  • All Implemented Interfaces:
    Serializable

    public class S3ServiceException
    extends ServiceException
    Exception for use by S3Services and related utilities. This exception can hold useful additional information about errors that occur when communicating with S3.
    Author:
    James Murty
    See Also:
    Serialized Form
    • Constructor Detail

      • S3ServiceException

        public S3ServiceException​(String message,
                                  String xmlMessage)
        Constructor that includes the XML error document returned by S3.
        Parameters:
        message -
        xmlMessage -
      • S3ServiceException

        public S3ServiceException()
      • S3ServiceException

        public S3ServiceException​(String message,
                                  Throwable cause)
      • S3ServiceException

        public S3ServiceException​(String message)
      • S3ServiceException

        public S3ServiceException​(Throwable cause)
      • S3ServiceException

        public S3ServiceException​(ServiceException se)
        Wrap a ServiceException as an S3ServiceException.
        Parameters:
        se -
    • Method Detail

      • getS3ErrorCode

        public String getS3ErrorCode()
        Returns:
        The service-specific Error Code returned by S3, if an S3 response is available. For example "AccessDenied", "InternalError" Null otherwise.
      • getS3ErrorMessage

        public String getS3ErrorMessage()
        Returns:
        The service-specific Error Message returned by S3, if an S3 response is available. For example: "Access Denied", "We encountered an internal error. Please try again."
      • getS3ErrorHostId

        public String getS3ErrorHostId()
        Returns:
        The Error Host ID returned by S3, if an S3 response is available. Null otherwise.
      • getS3ErrorRequestId

        public String getS3ErrorRequestId()
        Returns:
        The Error Request ID returned by S3, if an S3 response is available. Null otherwise.