Implementation of HttpResponseHandler that handles only error responses from
Amazon Web Services. A list of unmarshallers is passed into the constructor,
and while handling a response, each unmarshaller is tried, in order, until
one is found that can successfully unmarshall the error response. If no
unmarshaller is found that can unmarshall the error response, a generic
AmazonServiceException is created and populated with the AWS error response
information (error message, AWS error code, AWS request ID, etc).
The list of error response unmarshallers to try to apply to error
Constructs a new DefaultErrorResponseHandler that will handle error
responses from Amazon services using the specified list of unmarshallers.
Each unmarshaller will be tried, in order, until one is found that can
unmarshall the error response.
The list of unmarshallers to try using when handling an error
Since this response handler completely consumes all the data from the
underlying HTTP connection during the handle method, we don't need to
keep the HTTP connection open.