@Produces @Singleton @Requires(classes=com.fasterxml.jackson.core.JsonProcessingException.class) public class JsonExceptionHandler extends Object implements ExceptionHandler<com.fasterxml.jackson.core.JsonProcessingException,Object>
Constructor and Description |
---|
JsonExceptionHandler(ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
handle(HttpRequest request,
com.fasterxml.jackson.core.JsonProcessingException exception)
Handles an exception and returns the result.
|
@Inject public JsonExceptionHandler(ErrorResponseProcessor<?> responseProcessor)
responseProcessor
- Error Response Processorpublic Object handle(HttpRequest request, com.fasterxml.jackson.core.JsonProcessingException exception)
ExceptionHandler
handle
in interface ExceptionHandler<com.fasterxml.jackson.core.JsonProcessingException,Object>
request
- The requestexception
- The exception type