Class JsonMappingExceptionMapper

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>

    public class JsonMappingExceptionMapper
    extends Object
    implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
    Implementation if ExceptionMapper to send down a "400 Bad Request" response in the event that unmappable JSON is received.
    • Constructor Detail

      • JsonMappingExceptionMapper

        public JsonMappingExceptionMapper()
    • Method Detail

      • toResponse

        public jakarta.ws.rs.core.Response toResponse​(com.fasterxml.jackson.databind.JsonMappingException exception)
        Specified by:
        toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>