Class JsonProcessingExceptionMapper

java.lang.Object
org.sdase.commons.server.jackson.errors.JsonProcessingExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>

@Provider public class JsonProcessingExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonProcessingException>
Exception mapper for JsonProcessingException that are thrown e.g. if the json is not well formatted or mapping to the java object failed
  • Constructor Details

    • JsonProcessingExceptionMapper

      public JsonProcessingExceptionMapper()
  • Method Details

    • toResponse

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