Class JsonMappingExceptionMapper

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

    @Provider
    public class JsonMappingExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
    Mapper that creates a well composed error body response out of a JsonMappingException.
    Author:
    tesarst
    • Constructor Detail

      • JsonMappingExceptionMapper

        public JsonMappingExceptionMapper()
    • Method Detail

      • toResponse

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