org.jclouds.aws.handlers
Class ParseAWSErrorFromXmlContent
java.lang.Object
org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent
- All Implemented Interfaces:
- HttpErrorHandler
- Direct Known Subclasses:
- ParseS3ErrorFromXmlContent
@Singleton
public class ParseAWSErrorFromXmlContent
- extends Object
- implements HttpErrorHandler
This will parse and set an appropriate exception on the command object.
- Author:
- Adrian Cole
- See Also:
AWSError
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
ParseAWSErrorFromXmlContent
@Inject
public ParseAWSErrorFromXmlContent(AWSUtils utils)
handleError
public void handleError(HttpCommand command,
HttpResponse response)
- Specified by:
handleError
in interface HttpErrorHandler
refineException
protected Exception refineException(HttpCommand command,
HttpResponse response,
Exception exception,
AWSError error,
String message)
Copyright © 2009-2012 jclouds. All Rights Reserved.