Package org.jets3t.service
Class S3ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jets3t.service.ServiceException
org.jets3t.service.S3ServiceException
- All Implemented Interfaces:
Serializable
Exception for use by
S3Service
s and related utilities.
This exception can hold useful additional information about errors that occur
when communicating with S3.- Author:
- James Murty
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionS3ServiceException
(String message) S3ServiceException
(String message, String xmlMessage) Constructor that includes the XML error document returned by S3.S3ServiceException
(String message, Throwable cause) S3ServiceException
(Throwable cause) Wrap a ServiceException as an S3ServiceException. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.jets3t.service.ServiceException
getErrorCode, getErrorHostId, getErrorMessage, getErrorRequestId, getRequestHost, getRequestPath, getRequestVerb, getResponseCode, getResponseDate, getResponseHeaders, getResponseStatus, getXmlMessage, getXmlMessageAsBuilder, isParsedFromXmlMessage, setErrorCode, setErrorHostId, setErrorMessage, setErrorRequestId, setRequestAndHostIds, setRequestHost, setRequestPath, setRequestVerb, setResponseCode, setResponseDate, setResponseHeaders, setResponseStatus, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
S3ServiceException
Constructor that includes the XML error document returned by S3.- Parameters:
message
-xmlMessage
-
-
S3ServiceException
public S3ServiceException() -
S3ServiceException
-
S3ServiceException
-
S3ServiceException
-
S3ServiceException
Wrap a ServiceException as an S3ServiceException.- Parameters:
se
-
-
-
Method Details
-
getS3ErrorCode
- Returns:
- The service-specific Error Code returned by S3, if an S3 response is available. For example "AccessDenied", "InternalError" Null otherwise.
-
getS3ErrorMessage
- Returns:
- The service-specific Error Message returned by S3, if an S3 response is available. For example: "Access Denied", "We encountered an internal error. Please try again."
-
getS3ErrorHostId
- Returns:
- The Error Host ID returned by S3, if an S3 response is available. Null otherwise.
-
getS3ErrorRequestId
- Returns:
- The Error Request ID returned by S3, if an S3 response is available. Null otherwise.
-