public class AmazonS3Exception extends AmazonServiceException implements Serializable
AmazonServiceException.ErrorType
Constructor and Description |
---|
AmazonS3Exception(String message)
Constructs a new
AmazonS3Exception with the specified message. |
AmazonS3Exception(String message,
Exception cause)
Constructs a new
AmazonS3Exception with the specified message and root
cause. |
AmazonS3Exception(String message,
String errorResponseXml)
Constructs a new
AmazonS3Exception with the specified message and
error response xml from Amazon S3. |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAdditionalDetails()
Returns any additional information retrieved in the error response.
|
String |
getCloudFrontId()
Gets Amazon S3's CloudFront ID when the request is performed in the accelerate mode.
|
String |
getErrorResponseXml()
Returns the error XML received in the HTTP Response or null if the
exception is constructed from the headers.
|
String |
getExtendedRequestId()
Gets Amazon S3's extended request ID.
|
String |
getMessage() |
void |
setAdditionalDetails(Map<String,String> additionalDetails)
Sets additional information about the error response.
|
void |
setCloudFrontId(String cloudFrontId)
Sets Amazon S3's CloudFront ID.
|
void |
setExtendedRequestId(String extendedRequestId)
Sets Amazon S3's extended request ID.
|
String |
toString()
Extends the implementation from AmazonServiceException to include
additional information on S3's extended request ID.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public AmazonS3Exception(String message)
AmazonS3Exception
with the specified message.message
- The error message describing why this exception was thrown.AmazonS3Exception(String, Exception)
public AmazonS3Exception(String message, 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(String message, 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 String getExtendedRequestId()
AmazonS3Exception.setExtendedRequestId(String)
public void setExtendedRequestId(String extendedRequestId)
extendedRequestId
- S3's extended request ID.AmazonS3Exception.getExtendedRequestId()
public String getCloudFrontId()
AmazonS3Exception.setCloudFrontId(String)
public void setCloudFrontId(String cloudFrontId)
cloudFrontId
- Amazon S3's CloudFront ID in response from the accelerate endpoint.public Map<String,String> getAdditionalDetails()
public void setAdditionalDetails(Map<String,String> additionalDetails)
public String toString()
public String getMessage()
getMessage
in class AmazonServiceException
public String getErrorResponseXml()
Copyright © 2024. All rights reserved.