public class LegacyErrorUnmarshaller extends Object implements Unmarshaller<AmazonServiceException,Node>
| Constructor and 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 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) | 
| 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
unmarshall in interface Unmarshaller<AmazonServiceException,Node>Exceptionpublic 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
ExceptionCopyright © 2025. All rights reserved.