public class StandardErrorUnmarshaller extends AbstractErrorUnmarshaller<org.w3c.dom.Node>
LegacyErrorUnmarshaller
exceptionClass
Modifier | Constructor and Description |
---|---|
|
StandardErrorUnmarshaller()
Constructs a new unmarshaller that will unmarshall a standard AWS error
message as a generic AmazonServiceException object.
|
protected |
StandardErrorUnmarshaller(java.lang.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 error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorPropertyPath(java.lang.String property)
Returns the path to the specified property within an error response.
|
java.lang.String |
parseErrorCode(org.w3c.dom.Node in)
Returns the AWS error code for the specified error response.
|
AmazonServiceException |
unmarshall(org.w3c.dom.Node in) |
newException
public StandardErrorUnmarshaller()
protected StandardErrorUnmarshaller(java.lang.Class<? extends AmazonServiceException> exceptionClass)
exceptionClass
- The class of AmazonServiceException to create and
populate when unmarshalling the error message.public AmazonServiceException unmarshall(org.w3c.dom.Node in) throws java.lang.Exception
in
- to unmarshall.java.lang.Exception
Unmarshaller.unmarshall(java.lang.Object)
public java.lang.String parseErrorCode(org.w3c.dom.Node in) throws java.lang.Exception
in
- The DOM tree node containing the error response.java.lang.Exception
- If any problems were encountered pulling out the AWS
error code.public java.lang.String getErrorPropertyPath(java.lang.String property)
property
- The name of the desired property.