public abstract class AbstractErrorUnmarshaller<T> extends Object implements Unmarshaller<AmazonServiceException,T>
| Modifier and Type | Field and Description | 
|---|---|
| protected Class<? extends AmazonServiceException> | exceptionClassThe 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(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(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 Class<? extends AmazonServiceException> exceptionClass
public AbstractErrorUnmarshaller()
public AbstractErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
exceptionClass - The subclass of AmazonServiceException which will be
            instantiated and populated by this class.protected AmazonServiceException newException(String message) throws Exception
message - The error message to set in the new exception object.Exception - If there are any problems using reflection to invoke the
             exception class's constructor.Copyright © 2025. All rights reserved.