org.jclouds.aws
Class AWSResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jclouds.http.HttpResponseException
                  extended by org.jclouds.aws.AWSResponseException
All Implemented Interfaces:
Serializable

public class AWSResponseException
extends HttpResponseException

Encapsulates an AWS Error from Amazon.

Author:
Adrian Cole
See Also:
, AWSError, ParseAWSErrorFromXmlContent, Serialized Form

Field Summary
 
Fields inherited from class org.jclouds.http.HttpResponseException
command, response
 
Constructor Summary
AWSResponseException(HttpCommand command, HttpResponse response, AWSError error)
           
AWSResponseException(HttpCommand command, HttpResponse response, AWSError error, Throwable cause)
           
AWSResponseException(String message, HttpCommand command, HttpResponse response, AWSError error)
           
AWSResponseException(String message, HttpCommand command, HttpResponse response, AWSError error, Throwable cause)
           
 
Method Summary
 AWSError getError()
           
 void setError(AWSError error)
           
 
Methods inherited from class org.jclouds.http.HttpResponseException
getCommand, getContent, getResponse, setContent
 
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

AWSResponseException

public AWSResponseException(HttpCommand command,
                            HttpResponse response,
                            AWSError error)

AWSResponseException

public AWSResponseException(HttpCommand command,
                            HttpResponse response,
                            AWSError error,
                            Throwable cause)

AWSResponseException

public AWSResponseException(String message,
                            HttpCommand command,
                            HttpResponse response,
                            AWSError error)

AWSResponseException

public AWSResponseException(String message,
                            HttpCommand command,
                            HttpResponse response,
                            AWSError error,
                            Throwable cause)
Method Detail

setError

public void setError(AWSError error)

getError

public AWSError getError()


Copyright © 2009-2011 jclouds. All Rights Reserved.