|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.s3.model.AmazonS3Exception
public class AmazonS3Exception
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException |
---|
AmazonServiceException.ErrorType |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
String |
getExtendedRequestId()
Gets Amazon S3's extended request 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. |
Methods inherited from class com.amazonaws.AmazonServiceException |
---|
getErrorCode, getErrorType, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorType, setRequestId, setServiceName, setStatusCode |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public String getExtendedRequestId()
setExtendedRequestId(String)
public void setExtendedRequestId(String extendedRequestId)
extendedRequestId
- S3's extended request ID.getExtendedRequestId()
public String toString()
toString
in class AmazonServiceException
Throwable.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |