org.jets3t.service
Class S3ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jets3t.service.ServiceException
              extended by org.jets3t.service.S3ServiceException
All Implemented Interfaces:
java.io.Serializable

public class S3ServiceException
extends ServiceException

Exception for use by S3Services and related utilities. This exception can hold useful additional information about errors that occur when communicating with S3.

See Also:
Serialized Form

Constructor Summary
S3ServiceException()
           
S3ServiceException(ServiceException se)
          Wrap a ServiceException as an S3ServiceException.
S3ServiceException(java.lang.String message)
           
S3ServiceException(java.lang.String message, java.lang.String xmlMessage)
          Constructor that includes the XML error document returned by S3.
S3ServiceException(java.lang.String message, java.lang.Throwable cause)
           
S3ServiceException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getS3ErrorCode()
           
 java.lang.String getS3ErrorHostId()
           
 java.lang.String getS3ErrorMessage()
           
 java.lang.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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

S3ServiceException

public S3ServiceException(java.lang.String message,
                          java.lang.String xmlMessage)
Constructor that includes the XML error document returned by S3.

Parameters:
message -
xmlMessage -

S3ServiceException

public S3ServiceException()

S3ServiceException

public S3ServiceException(java.lang.String message,
                          java.lang.Throwable cause)

S3ServiceException

public S3ServiceException(java.lang.String message)

S3ServiceException

public S3ServiceException(java.lang.Throwable cause)

S3ServiceException

public S3ServiceException(ServiceException se)
Wrap a ServiceException as an S3ServiceException.

Parameters:
se -
Method Detail

getS3ErrorCode

public java.lang.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 java.lang.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 java.lang.String getS3ErrorHostId()
Returns:
The Error Host ID returned by S3, if an S3 response is available. Null otherwise.

getS3ErrorRequestId

public java.lang.String getS3ErrorRequestId()
Returns:
The Error Request ID returned by S3, if an S3 response is available. Null otherwise.