Class RestEasyClassicJsonbExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.ProcessingException>

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

      • RestEasyClassicJsonbExceptionMapper

        public RestEasyClassicJsonbExceptionMapper()
    • Method Detail

      • toProblem

        protected HttpProblem toProblem​(javax.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<javax.ws.rs.ProcessingException>