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 Details

    • JsonProcessingExceptionMapper

      public JsonProcessingExceptionMapper()
  • Method Details

    • toResponse

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