public class AmazonS3Exception extends AmazonServiceException implements java.io.Serializable
AmazonServiceException.ErrorType
Constructor and Description |
---|
AmazonS3Exception(java.lang.String message)
Constructs a new
AmazonS3Exception with the specified message. |
AmazonS3Exception(java.lang.String message,
java.lang.Exception cause)
Constructs a new
AmazonS3Exception with the specified message and
root cause. |
AmazonS3Exception(java.lang.String message,
java.lang.String errorResponseXml)
Constructs a new
AmazonS3Exception with the specified message and
error response xml from Amazon S3. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalDetails()
Returns any additional information retrieved in the error response.
|
java.lang.String |
getCloudFrontId()
Gets Amazon S3's CloudFront ID when the request is performed in the
accelerate mode.
|
java.lang.String |
getErrorResponseXml()
Returns the error XML received in the HTTP Response or null if the
exception is constructed from the headers.
|
java.lang.String |
getExtendedRequestId()
Gets Amazon S3's extended request ID.
|
void |
setAdditionalDetails(java.util.Map<java.lang.String,java.lang.String> additionalDetails)
Sets additional information about the error response.
|
void |
setCloudFrontId(java.lang.String cloudFrontId)
Sets Amazon S3's CloudFront ID.
|
void |
setExtendedRequestId(java.lang.String extendedRequestId)
Sets Amazon S3's extended request ID.
|
java.lang.String |
toString()
Extends the implementation from AmazonServiceException to include
additional information on S3's extended request ID.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
public AmazonS3Exception(java.lang.String message)
AmazonS3Exception
with the specified message.message
- The error message describing why this exception was
thrown.AmazonS3Exception(String, Exception)
public AmazonS3Exception(java.lang.String message, java.lang.Exception cause)
AmazonS3Exception
with the specified message and
root cause.message
- The error message describing why this exception was
thrown.cause
- The root exception that caused this exception to be thrown.AmazonS3Exception(String)
public AmazonS3Exception(java.lang.String message, java.lang.String errorResponseXml)
AmazonS3Exception
with the specified message and
error response xml from Amazon S3.message
- The error message describing why this exception was
thrown.errorResponseXml
- The original error response XML received from
Amazon S3AmazonS3Exception(String)
public java.lang.String getExtendedRequestId()
setExtendedRequestId(String)
public void setExtendedRequestId(java.lang.String extendedRequestId)
extendedRequestId
- S3's extended request ID.getExtendedRequestId()
public java.lang.String getCloudFrontId()
setCloudFrontId(String)
public void setCloudFrontId(java.lang.String cloudFrontId)
cloudFrontId
- Amazon S3's CloudFront ID in response from the
accelerate endpoint.public java.util.Map<java.lang.String,java.lang.String> getAdditionalDetails()
public void setAdditionalDetails(java.util.Map<java.lang.String,java.lang.String> additionalDetails)
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getErrorResponseXml()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.