com.xerox.amazonws.common
Class AWSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.xerox.amazonws.common.AWSException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AutoScalingException, DevPayException, EC2Exception, FPSException, LoadBalancingException, MonitoringException, SDBException, SDBException, SNSException, SQSException

public class AWSException
extends Exception

A wrapper exception to simplify catching errors related to AWS activity.

Author:
D. Kavanagh, developer@dotech.com
See Also:
Serialized Form

Constructor Summary
protected AWSException(AWSException ex)
           
  AWSException(String s)
           
  AWSException(String s, String requestId)
           
  AWSException(String s, String requestId, List<? extends AWSError> errors)
           
  AWSException(String s, Throwable cause)
           
 
Method Summary
protected static String concatenateErrors(List<FPSError> errors)
           
 List<? extends AWSError> getErrors()
           
 String getRequestId()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AWSException

public AWSException(String s)

AWSException

public AWSException(String s,
                    Throwable cause)

AWSException

public AWSException(String s,
                    String requestId)

AWSException

public AWSException(String s,
                    String requestId,
                    List<? extends AWSError> errors)

AWSException

protected AWSException(AWSException ex)
Method Detail

getRequestId

public String getRequestId()

getErrors

public List<? extends AWSError> getErrors()

concatenateErrors

protected static String concatenateErrors(List<FPSError> errors)