org.jets3t.service
Class S3ServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jets3t.service.S3ServiceException
All Implemented Interfaces:
java.io.Serializable

public class S3ServiceException
extends java.lang.Exception

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(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
 int getResponseCode()
           
 java.lang.String getResponseStatus()
           
 java.lang.String getS3ErrorCode()
           
 java.lang.String getS3ErrorHostId()
           
 java.lang.String getS3ErrorMessage()
           
 java.lang.String getS3ErrorRequestId()
           
 java.lang.String getXmlMessage()
           
 void setResponseCode(int responseCode)
           
 void setResponseStatus(java.lang.String responseStatus)
           
 java.lang.String 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)
Method Detail

toString

public java.lang.String toString()

getS3ErrorCode

public java.lang.String getS3ErrorCode()
Returns:
The Error Code returned by S3, if this exception was created with the XML Message constructor.

getS3ErrorMessage

public java.lang.String getS3ErrorMessage()
Returns:
The Error Message returned by S3, if this exception was created with the XML Message constructor.

getS3ErrorHostId

public java.lang.String getS3ErrorHostId()
Returns:
The Error Host ID returned by S3, if this exception was created with the XML Message constructor.

getS3ErrorRequestId

public java.lang.String getS3ErrorRequestId()
Returns:
The Error Request ID returned by S3, if this exception was created with the XML Message constructor.

getXmlMessage

public java.lang.String getXmlMessage()
Returns:
The XML Error message returned by S3, if this exception was created with the XML Message constructor. Null if no XML message is available.

getResponseCode

public int getResponseCode()

setResponseCode

public void setResponseCode(int responseCode)

getResponseStatus

public java.lang.String getResponseStatus()

setResponseStatus

public void setResponseStatus(java.lang.String responseStatus)