Class RestEasyClassicJsonbExceptionMapper
- java.lang.Object
-
- com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase<javax.ws.rs.ProcessingException>
-
- com.tietoevry.quarkus.resteasy.problem.jsonb.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>
-
-
Field Summary
-
Fields inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
postProcessorsRegistry
-
-
Constructor Summary
Constructors Constructor Description RestEasyClassicJsonbExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpProblemtoProblem(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.-
Methods inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
toResponse
-
-
-
-
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:
toProblemin classExceptionMapperBase<javax.ws.rs.ProcessingException>
-
-