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