@ThreadSafe public class ApiGatewayErrorUnmarshaller extends Object implements Unmarshaller<BaseException,com.fasterxml.jackson.databind.JsonNode>
| Constructor and Description |
|---|
ApiGatewayErrorUnmarshaller(Class<? extends BaseException> exceptionClass,
Optional<Integer> httpStatusCode) |
| Modifier and Type | Method and 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 © 2018. All rights reserved.