T - the AbstractErrorUnmarshaller type.public abstract class AbstractErrorUnmarshaller<T> extends java.lang.Object implements Unmarshaller<AmazonServiceException,T>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends AmazonServiceException> |
exceptionClass
The type of AmazonServiceException that will be instantiated.
|
| Constructor and Description |
|---|
AbstractErrorUnmarshaller()
Constructs a new error unmarshaller that will unmarshall error responses
into AmazonServiceException objects.
|
AbstractErrorUnmarshaller(java.lang.Class<? extends AmazonServiceException> exceptionClass)
Constructs a new error unmarshaller that will unmarshall error responses
into objects of the specified class, extending AmazonServiceException.
|
| Modifier and Type | Method and Description |
|---|---|
protected AmazonServiceException |
newException(java.lang.String message)
Constructs a new exception object of the type specified in this class's
constructor and sets the specified error message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunmarshallprotected final java.lang.Class<? extends AmazonServiceException> exceptionClass
public AbstractErrorUnmarshaller()
public AbstractErrorUnmarshaller(java.lang.Class<? extends AmazonServiceException> exceptionClass)
exceptionClass - The subclass of AmazonServiceException which will
be instantiated and populated by this class.protected AmazonServiceException newException(java.lang.String message) throws java.lang.Exception
message - The error message to set in the new exception object.java.lang.Exception - If there are any problems using reflection to invoke the
exception class's constructor.