Package io.dropwizard.jersey.jackson
Class JsonProcessingExceptionMapper
- java.lang.Object
-
- io.dropwizard.jersey.errors.LoggingExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
-
- io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
@Provider public class JsonProcessingExceptionMapper extends LoggingExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
-
-
Field Summary
-
Fields inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper
logger
-
-
Constructor Summary
Constructors Constructor Description JsonProcessingExceptionMapper()
JsonProcessingExceptionMapper(boolean showDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isShowDetails()
jakarta.ws.rs.core.Response
toResponse(com.fasterxml.jackson.core.JsonProcessingException exception)
-
Methods inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper
formatErrorMessage, formatLogMessage, logException, logException
-
-
-
-
Method Detail
-
isShowDetails
public boolean isShowDetails()
-
toResponse
public jakarta.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonProcessingException exception)
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
- Overrides:
toResponse
in classLoggingExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
-
-