Class AwsXmlErrorUnmarshaller
java.lang.Object
software.amazon.awssdk.protocols.query.internal.unmarshall.AwsXmlErrorUnmarshaller
Unmarshalls an AWS XML exception from parsed XML.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
unmarshall
(XmlElement documentRoot, Optional<XmlElement> errorRoot, Optional<SdkBytes> documentBytes, SdkHttpFullResponse response, ExecutionAttributes executionAttributes) Unmarshal an AWS XML exception
-
Method Details
-
builder
- Returns:
- New Builder instance.
-
unmarshall
public AwsServiceException unmarshall(XmlElement documentRoot, Optional<XmlElement> errorRoot, Optional<SdkBytes> documentBytes, SdkHttpFullResponse response, ExecutionAttributes executionAttributes) Unmarshal an AWS XML exception- Parameters:
documentRoot
- The parsed payload documenterrorRoot
- The specific element of the parsed payload document that contains the error to be marshalled or empty if it could not be located.documentBytes
- The raw bytes of the original payload document if they are availableresponse
- The HTTP response objectexecutionAttributes
-ExecutionAttributes
for the current execution- Returns:
- An
AwsServiceException
unmarshalled from the XML.
-