Class CompileQueryExceptionMapper

java.lang.Object
ch.tocco.nice2.rest.entity.impl.error.CompileQueryExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<CompileException>

@Component public class CompileQueryExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<CompileException>
This exception mapper is registered on the CompileException. The exception is mapped onto a 400 BAD REQUEST response.
  • Constructor Details

    • CompileQueryExceptionMapper

      public CompileQueryExceptionMapper()
  • Method Details

    • toResponse

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