public final class AwsXmlErrorUnmarshaller extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AwsXmlErrorUnmarshaller.Builder
Builder for
AwsXmlErrorUnmarshaller . |
Modifier and Type | Method and Description |
---|---|
static AwsXmlErrorUnmarshaller.Builder |
builder() |
AwsServiceException |
unmarshall(XmlElement documentRoot,
Optional<XmlElement> errorRoot,
Optional<SdkBytes> documentBytes,
SdkHttpFullResponse response,
ExecutionAttributes executionAttributes)
Unmarshal an AWS XML exception
|
public static AwsXmlErrorUnmarshaller.Builder builder()
public AwsServiceException unmarshall(XmlElement documentRoot, Optional<XmlElement> errorRoot, Optional<SdkBytes> documentBytes, SdkHttpFullResponse response, ExecutionAttributes executionAttributes)
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 executionAwsServiceException
unmarshalled from the XML.Copyright © 2022. All rights reserved.