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