Class AwsJsonProtocolErrorUnmarshaller
java.lang.Object
software.amazon.awssdk.protocols.json.internal.unmarshall.AwsJsonProtocolErrorUnmarshaller
- All Implemented Interfaces:
HttpResponseHandler<AwsServiceException>
public final class AwsJsonProtocolErrorUnmarshaller
extends Object
implements HttpResponseHandler<AwsServiceException>
Unmarshaller for AWS specific error responses. All errors are unmarshalled into a subtype of
AwsServiceException
(more specifically a subtype generated for each AWS service).-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder forAwsJsonProtocolErrorUnmarshaller
. -
Field Summary
Fields inherited from interface software.amazon.awssdk.core.http.HttpResponseHandler
X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER, X_AMZN_REQUEST_ID_HEADER_ALTERNATE, X_AMZN_REQUEST_ID_HEADERS
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
handle
(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) Accepts an HTTP response object, and returns an object of type T.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.http.HttpResponseHandler
needsConnectionLeftOpen
-
Method Details
-
handle
public AwsServiceException handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) Description copied from interface:HttpResponseHandler
Accepts an HTTP response object, and returns an object of type T. Individual implementations may choose to handle the response however they need to, and return any type that they need to.- Specified by:
handle
in interfaceHttpResponseHandler<AwsServiceException>
- Parameters:
response
- The HTTP response to handle, as received from an AWS service.executionAttributes
- The attributes attached to this particular execution.- Returns:
- An object of type T, as defined by individual implementations.
-
builder
-