Class QueryTimeoutExceptionMapper

java.lang.Object
ch.tocco.nice2.rest.core.spi.error.QueryTimeoutExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>

@Component public class QueryTimeoutExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Exception>
The exception is mapped onto a 408 REQUEST TIMEOUT response.
  • Constructor Details

    • QueryTimeoutExceptionMapper

      public QueryTimeoutExceptionMapper()
  • Method Details

    • toResponse

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