Package org.jclouds.aws.handlers
Class ParseAWSErrorFromXmlContent
- java.lang.Object
-
- org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent
-
- All Implemented Interfaces:
HttpErrorHandler
- Direct Known Subclasses:
ParseS3ErrorFromXmlContent
,ParseSQSErrorFromXmlContent
@Singleton public class ParseAWSErrorFromXmlContent extends Object implements HttpErrorHandler
This will parse and set an appropriate exception on the command object.- See Also:
AWSError
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
logger
-
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
-
-
Constructor Summary
Constructors Constructor Description ParseAWSErrorFromXmlContent(AWSUtils utils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(HttpCommand command, HttpResponse response)
protected Exception
refineException(HttpCommand command, HttpResponse response, Exception exception, AWSError error, String message)
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Constructor Detail
-
ParseAWSErrorFromXmlContent
@Inject public ParseAWSErrorFromXmlContent(AWSUtils utils)
-
-
Method Detail
-
handleError
public void handleError(HttpCommand command, HttpResponse response)
- Specified by:
handleError
in interfaceHttpErrorHandler
-
refineException
protected Exception refineException(HttpCommand command, HttpResponse response, Exception exception, AWSError error, String message)
-
-