Class JsonProcessingExceptionMapper
java.lang.Object
dev.resteasy.providers.jackson.JsonProcessingExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<tools.jackson.core.JacksonException>
public class JsonProcessingExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<tools.jackson.core.JacksonException>
Maps
JacksonException to a 400 Bad Request response. The exception details are logged but not
exposed in the response body.- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(tools.jackson.core.JacksonException exception)
-
Constructor Details
-
JsonProcessingExceptionMapper
public JsonProcessingExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(tools.jackson.core.JacksonException exception) - Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<tools.jackson.core.JacksonException>
-