Class JsonParseExceptionMapper

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

    public class JsonParseExceptionMapper
    extends java.lang.Object
    implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
    Implementation of ExceptionMapper to send down a "400 Bad Request" in the event unparsable JSON is received.
    • Method Summary

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

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

      • JsonParseExceptionMapper

        public JsonParseExceptionMapper()
    • Method Detail

      • toResponse

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