Package io.quarkiverse.httpproblem.jsonb
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 Summary
ConstructorsConstructorDescriptionRestEasyClassicJsonbExceptionMapper(PostProcessorsRegistry postProcessorsRegistry, DetailSanitizer detailSanitizer) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpProblemtoProblem(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.Methods inherited from class io.quarkiverse.httpproblem.ExceptionMapperBase
toResponse
-
Constructor Details
-
RestEasyClassicJsonbExceptionMapper
public RestEasyClassicJsonbExceptionMapper() -
RestEasyClassicJsonbExceptionMapper
@Inject public RestEasyClassicJsonbExceptionMapper(PostProcessorsRegistry postProcessorsRegistry, DetailSanitizer detailSanitizer)
-
-
Method Details
-
toProblem
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<jakarta.ws.rs.ProcessingException>
-