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