Class EarlyEofExceptionMapper

java.lang.Object
org.sdase.commons.server.jackson.errors.EarlyEofExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>

@Provider public class EarlyEofExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
Exception mapper if client disconnects unexpectedly. This mapper replaces EarlyEofExceptionMapper to return the custom ApiError.
  • Constructor Details

    • EarlyEofExceptionMapper

      public EarlyEofExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(org.eclipse.jetty.io.EofException exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>