Class QueryTimeoutExceptionMapper

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

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

    • QueryTimeoutExceptionMapper

      public QueryTimeoutExceptionMapper()
  • Method Details

    • toResponse

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