Class JsonProcessingExceptionMapper

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

    @Provider
    public class JsonProcessingExceptionMapper
    extends java.lang.Object
    implements javax.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(com.fasterxml.jackson.core.JsonProcessingException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonProcessingExceptionMapper

        public JsonProcessingExceptionMapper()
    • Method Detail

      • toResponse

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