public final class AwsXmlErrorProtocolUnmarshaller extends Object implements HttpResponseHandler<AwsServiceException>
<Response>
<Errors>
<Error>
<Code>MissingParameter</Code>
<Message>The request must contain the parameter DomainName</Message>
<BoxUsage>0.0055590278</BoxUsage>
</Error>
</Errors>
<RequestID>ad3280dd-5ac1-efd1-b9b0-a86969a9234d</RequestID>
</Response>
<ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2017-10-30/">
<Error>
<Type>Sender</Type>
<Code>MalformedInput</Code>
<Message>Invalid XML document</Message>
</Error>
<RequestId>7c8da4af-de44-11e8-a60e-1b2014315455</RequestId>
</ErrorResponse>
<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>flajdfadjfladjf</BucketName>
<RequestId>D9DBB9F267849CA3</RequestId>
<HostId>fn8B1fUvWzg7I3CIeMT4UMqCZDF4+QO1JlbOJlQAVOosACZsLWv/K2dapVncz34a2mArhp11PjI=</HostId>
</Error>
Modifier and Type | Class and Description |
---|---|
static class |
AwsXmlErrorProtocolUnmarshaller.Builder
Builder for
AwsXmlErrorProtocolUnmarshaller . |
X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER
Modifier and Type | Method and Description |
---|---|
static AwsXmlErrorProtocolUnmarshaller.Builder |
builder() |
AwsServiceException |
handle(SdkHttpFullResponse response,
ExecutionAttributes executionAttributes)
Accepts an HTTP response object, and returns an object of type T.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
needsConnectionLeftOpen
public AwsServiceException handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes)
HttpResponseHandler
handle
in interface HttpResponseHandler<AwsServiceException>
response
- The HTTP response to handle, as received from an AWS service.executionAttributes
- The attributes attached to this particular execution.public static AwsXmlErrorProtocolUnmarshaller.Builder builder()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.