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
public class S3ServiceException extends ServiceException
Exception for use byS3Service
s and related utilities. This exception can hold useful additional information about errors that occur when communicating with S3.- Author:
- James Murty
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3ServiceException()
S3ServiceException(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)
S3ServiceException(ServiceException se)
Wrap a ServiceException as an S3ServiceException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getS3ErrorCode()
String
getS3ErrorHostId()
String
getS3ErrorMessage()
String
getS3ErrorRequestId()
-
Methods 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 Detail
-
S3ServiceException
public S3ServiceException(String message, String xmlMessage)
Constructor that includes the XML error document returned by S3.- Parameters:
message
-xmlMessage
-
-
S3ServiceException
public S3ServiceException()
-
S3ServiceException
public S3ServiceException(String message)
-
S3ServiceException
public S3ServiceException(Throwable cause)
-
S3ServiceException
public S3ServiceException(ServiceException se)
Wrap a ServiceException as an S3ServiceException.- Parameters:
se
-
-
-
Method Detail
-
getS3ErrorCode
public String getS3ErrorCode()
- Returns:
- The service-specific Error Code returned by S3, if an S3 response is available. For example "AccessDenied", "InternalError" Null otherwise.
-
getS3ErrorMessage
public String 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
public String getS3ErrorHostId()
- Returns:
- The Error Host ID returned by S3, if an S3 response is available. Null otherwise.
-
getS3ErrorRequestId
public String getS3ErrorRequestId()
- Returns:
- The Error Request ID returned by S3, if an S3 response is available. Null otherwise.
-
-