Class CompileQueryExceptionMapper

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

@Component public class CompileQueryExceptionMapper extends Object implements jakarta.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 jakarta.ws.rs.core.Response toResponse(CompileException exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<CompileException>