org.jclouds.aws.handlers
Class ParseAWSErrorFromXmlContent

java.lang.Object
  extended by org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent
All Implemented Interfaces:
org.jclouds.http.HttpErrorHandler

@Singleton
public class ParseAWSErrorFromXmlContent
extends Object
implements org.jclouds.http.HttpErrorHandler

This will parse and set an appropriate exception on the command object.

Author:
Adrian Cole
See Also:
AWSError

Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
ParseAWSErrorFromXmlContent(AWSUtils utils)
           
 
Method Summary
 void handleError(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
           
protected  Exception refineException(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response, Exception exception, AWSError error, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.jclouds.logging.Logger logger
Constructor Detail

ParseAWSErrorFromXmlContent

@Inject
public ParseAWSErrorFromXmlContent(AWSUtils utils)
Method Detail

handleError

public void handleError(org.jclouds.http.HttpCommand command,
                        org.jclouds.http.HttpResponse response)
Specified by:
handleError in interface org.jclouds.http.HttpErrorHandler

refineException

protected Exception refineException(org.jclouds.http.HttpCommand command,
                                    org.jclouds.http.HttpResponse response,
                                    Exception exception,
                                    AWSError error,
                                    String message)


Copyright © 2009-2012 jclouds. All Rights Reserved.