@ThreadSafe public class AwsJsonErrorUnmarshaller extends JsonErrorUnmarshaller<AwsServiceException>
| Modifier and Type | Field and Description |
|---|---|
static AwsJsonErrorUnmarshaller |
DEFAULT_UNMARSHALLER |
| Constructor and Description |
|---|
AwsJsonErrorUnmarshaller(Class<? extends AwsServiceException> exceptionClass,
String handledErrorCode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchErrorCode(String actualErrorCode) |
unmarshallpublic static final AwsJsonErrorUnmarshaller DEFAULT_UNMARSHALLER
public AwsJsonErrorUnmarshaller(Class<? extends AwsServiceException> exceptionClass, String handledErrorCode)
exceptionClass - Exception class this unmarshaller will attempt to deserialize error response intohandledErrorCode - AWS error code that this unmarshaller handles. Pass null to handle all exceptionspublic boolean matchErrorCode(String actualErrorCode)
actualErrorCode - Actual AWS error code found in the error response.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.