Unmarshaller<BaseException,com.fasterxml.jackson.databind.JsonNode>@ThreadSafe public class ApiGatewayErrorUnmarshaller extends Object implements Unmarshaller<BaseException,com.fasterxml.jackson.databind.JsonNode>
| Constructor | Description |
|---|---|
ApiGatewayErrorUnmarshaller(Class<? extends BaseException> exceptionClass,
Optional<Integer> httpStatusCode) |
| Modifier and Type | Method | Description |
|---|---|---|
BaseException |
unmarshall(com.fasterxml.jackson.databind.JsonNode jsonContent) |
public ApiGatewayErrorUnmarshaller(Class<? extends BaseException> exceptionClass, Optional<Integer> httpStatusCode)
exceptionClass - Exception class this unmarshaller will attempt to deserialize error
response intohttpStatusCode - HTTP status code associated with this modeled exception. A value of
null will match all http status codes.public BaseException unmarshall(com.fasterxml.jackson.databind.JsonNode jsonContent) throws Exception
unmarshall in interface Unmarshaller<BaseException,com.fasterxml.jackson.databind.JsonNode>ExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.