com.amazonaws.services.s3.model
Class AmazonS3Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.s3.model.AmazonS3Exception
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MultiObjectDeleteException
public class AmazonS3Exception
- extends AmazonServiceException
Provides an extension of the AmazonServiceException
for errors reported by Amazon S3 while
processing a request. In particular, this class provides access to Amazon S3's
extended request ID. This ID is required debugging information in the case
the user needs to contact Amazon about an issue where Amazon S3 is incorrectly
handling a request.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getExtendedRequestId()
Gets Amazon S3's extended request 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. |
Methods inherited from class com.amazonaws.AmazonServiceException |
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorType, setRequestId, setServiceName, setStatusCode |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmazonS3Exception
public AmazonS3Exception(java.lang.String message)
- Constructs a new
AmazonS3Exception
with the specified message.
- Parameters:
message
- The error message describing why this exception was thrown.- See Also:
AmazonS3Exception(String, Exception)
AmazonS3Exception
public AmazonS3Exception(java.lang.String message,
java.lang.Exception cause)
- Constructs a new
AmazonS3Exception
with the specified message and root
cause.
- Parameters:
message
- The error message describing why this exception was thrown.cause
- The root exception that caused this exception to be thrown.- See Also:
AmazonS3Exception(String)
getExtendedRequestId
public java.lang.String getExtendedRequestId()
- Gets Amazon S3's extended request ID. This ID is required debugging information in the case
the user needs to contact Amazon about an issue where Amazon S3 is incorrectly
handling a request.
- Returns:
- Amazon S3's extended request ID.
- See Also:
setExtendedRequestId(String)
setExtendedRequestId
public void setExtendedRequestId(java.lang.String extendedRequestId)
- Sets Amazon S3's extended request ID.
- Parameters:
extendedRequestId
- S3's extended request ID.- See Also:
getExtendedRequestId()
toString
public java.lang.String toString()
- Extends the implementation from AmazonServiceException to include
additional information on S3's extended request ID.
- Overrides:
toString
in class java.lang.Throwable
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.