Class JsonMappingExceptionMapper

java.lang.Object
com.fasterxml.jackson.jakarta.rs.base.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 Details

    • JsonMappingExceptionMapper

      public JsonMappingExceptionMapper()
  • Method Details

    • 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>