Class JsonParseExceptionMapper
java.lang.Object
com.fasterxml.jackson.jakarta.rs.base.JsonParseExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
public class JsonParseExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
Implementation of
ExceptionMapper to send down a "400 Bad Request"
in the event unparsable JSON is received.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(com.fasterxml.jackson.core.JsonParseException exception)
-
Constructor Details
-
JsonParseExceptionMapper
public JsonParseExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonParseException exception) - Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
-