Class CrtS3RuntimeException

    • Constructor Detail

      • CrtS3RuntimeException

        public CrtS3RuntimeException​(int errorCode,
                                     int responseStatus,
                                     String errorPayload)
      • CrtS3RuntimeException

        public CrtS3RuntimeException​(int errorCode,
                                     int responseStatus,
                                     byte[] errorPayload)
    • Method Detail

      • getAwsErrorCode

        public String getAwsErrorCode()
        Returns the aws error code from S3 response. The Code element in xml response.
        Returns:
        errorCode, if no Code element in the response, empty string will be returned
      • getAwsErrorMessage

        public String getAwsErrorMessage()
        Returns the error message from S3 response. The detail among Message element in xml response.
        Returns:
        error message, if no Message element in the response, empty string will be returned
      • getStatusCode

        public int getStatusCode()
        Returns the status code in S3 response.
        Returns:
        status code in int