Class StreamReadExceptionMapper

java.lang.Object
tools.jackson.jakarta.rs.base.StreamReadExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<tools.jackson.core.exc.StreamReadException>

public class StreamReadExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<tools.jackson.core.exc.StreamReadException>
Implementation of ExceptionMapper to send down a "400 Bad Request" in the event unparsable JSON is received.
  • Constructor Details

    • StreamReadExceptionMapper

      public StreamReadExceptionMapper()
  • Method Details

    • toResponse

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