public class LegacyErrorUnmarshaller extends AbstractErrorUnmarshaller<AwsServiceException,Node>
Constructor and Description |
---|
LegacyErrorUnmarshaller()
Constructs a new unmarshaller that will unmarshall AWS error responses as
a generic SdkServiceException object.
|
LegacyErrorUnmarshaller(Class<? extends AwsServiceException> exceptionClass)
Constructor allowing subclasses to specify a specific type of
SdkServiceException to instantiating when populating the exception
object with data from the AWS error response.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorPropertyPath(String property)
Returns the path to the specified property within an error response.
|
String |
parseErrorCode(Node in)
Returns the AWS error code for the specified error response.
|
String |
parseErrorCode(Node in,
XPath xpath) |
AwsServiceException |
unmarshall(Node in) |
public LegacyErrorUnmarshaller()
public LegacyErrorUnmarshaller(Class<? extends AwsServiceException> exceptionClass)
exceptionClass
- The class of SdkServiceException to create and populate
when unmarshalling the AWS error response.public AwsServiceException unmarshall(Node in) throws Exception
Exception
public String parseErrorCode(Node in) throws Exception
in
- The DOM tree node containing the error response.Exception
- If any problems were encountered pulling out the AWS error
code.public String parseErrorCode(Node in, XPath xpath) throws Exception
Exception
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.