public abstract class EnhancedJsonErrorUnmarshaller extends JsonErrorUnmarshaller
JsonUnmarshallerContext instead of a JsonNode.DEFAULT_UNMARSHALLERexceptionClass| Constructor and Description |
|---|
EnhancedJsonErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass,
String handledErrorCode) |
| Modifier and Type | Method and Description |
|---|---|
abstract AmazonServiceException |
unmarshallFromContext(JsonUnmarshallerContext context) |
matchErrorCode, unmarshallnewExceptionpublic EnhancedJsonErrorUnmarshaller(Class<? extends AmazonServiceException> 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 abstract AmazonServiceException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception
ExceptionCopyright © 2025. All rights reserved.