Unmarshaller<AmazonServiceException,Node>
AttributeDoesNotExistExceptionUnmarshaller
, DuplicateItemNameExceptionUnmarshaller
, InvalidNextTokenExceptionUnmarshaller
, InvalidNumberPredicatesExceptionUnmarshaller
, InvalidNumberValueTestsExceptionUnmarshaller
, InvalidParameterValueExceptionUnmarshaller
, InvalidQueryExpressionExceptionUnmarshaller
, MissingParameterExceptionUnmarshaller
, NoSuchDomainExceptionUnmarshaller
, NumberDomainAttributesExceededExceptionUnmarshaller
, NumberDomainBytesExceededExceptionUnmarshaller
, NumberDomainsExceededExceptionUnmarshaller
, NumberItemAttributesExceededExceptionUnmarshaller
, NumberSubmittedAttributesExceededExceptionUnmarshaller
, NumberSubmittedItemsExceededExceptionUnmarshaller
, RequestTimeoutExceptionUnmarshaller
, TooManyRequestedAttributesExceptionUnmarshaller
public class LegacyErrorUnmarshaller extends AbstractErrorUnmarshaller<Node>
Constructor | Description |
---|---|
LegacyErrorUnmarshaller() |
Constructs a new unmarshaller that will unmarshall AWS error responses as
a generic AmazonServiceException object.
|
LegacyErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass) |
Constructor allowing subclasses to specify a specific type of
AmazonServiceException to instantiating when populating the exception
object with data from the AWS error response.
|
Modifier and Type | Method | 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) |
|
AmazonServiceException |
unmarshall(Node in) |
public LegacyErrorUnmarshaller()
public LegacyErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
exceptionClass
- The class of AmazonServiceException to create and populate
when unmarshalling the AWS error response.public AmazonServiceException 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.