Class AwsXmlErrorUnmarshaller
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.internal.unmarshall.AwsXmlErrorUnmarshaller
-
public final class AwsXmlErrorUnmarshaller extends Object
Unmarshalls an AWS XML exception from parsed XML.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsXmlErrorUnmarshaller.Builder
Builder forAwsXmlErrorUnmarshaller
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsXmlErrorUnmarshaller.Builder
builder()
AwsServiceException
unmarshall(XmlElement documentRoot, Optional<XmlElement> errorRoot, Optional<SdkBytes> documentBytes, SdkHttpFullResponse response, ExecutionAttributes executionAttributes)
Unmarshal an AWS XML exception
-
-
-
Method Detail
-
builder
public static AwsXmlErrorUnmarshaller.Builder 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.
-
-