Class RestEasyClassicJsonbExceptionMapper

java.lang.Object
io.quarkiverse.httpproblem.ExceptionMapperBase<jakarta.ws.rs.ProcessingException>
io.quarkiverse.httpproblem.jsonb.RestEasyClassicJsonbExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.ws.rs.ProcessingException>

@Priority(5000) public final class RestEasyClassicJsonbExceptionMapper extends ExceptionMapperBase<jakarta.ws.rs.ProcessingException>
  • Constructor Details

    • RestEasyClassicJsonbExceptionMapper

      public RestEasyClassicJsonbExceptionMapper()
    • RestEasyClassicJsonbExceptionMapper

      @Inject public RestEasyClassicJsonbExceptionMapper(PostProcessorsRegistry postProcessorsRegistry, DetailSanitizer detailSanitizer)
  • Method Details

    • toProblem

      protected HttpProblem toProblem(jakarta.ws.rs.ProcessingException exception)
      Unfortunately Quarkus+JsonB throws ProcessingException, not JsonbException in case of malformed payload body, so `cause` needs to be checked explicitly. For native mode compatibility instanceof operator is not used to check cause type.
      Specified by:
      toProblem in class ExceptionMapperBase<jakarta.ws.rs.ProcessingException>