Class UnrecognizedPropertyExceptionMapper
java.lang.Object
io.quarkiverse.httpproblem.ExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
io.quarkiverse.httpproblem.jackson.UnrecognizedPropertyExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
@Priority(4999)
public final class UnrecognizedPropertyExceptionMapper
extends ExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
UnrecognizedPropertyException is thrown by Jackson, when request payload json does not fit DTO object with @Valid annotation
(e.g field has different name) and FAIL_ON_UNKNOWN_PROPERTIES is enabled (default changed in quarkus 1.11)
-
Constructor Summary
ConstructorsConstructorDescriptionUnrecognizedPropertyExceptionMapper(PostProcessorsRegistry postProcessorsRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpProblemtoProblem(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception) Methods inherited from class io.quarkiverse.httpproblem.ExceptionMapperBase
toResponse
-
Constructor Details
-
UnrecognizedPropertyExceptionMapper
public UnrecognizedPropertyExceptionMapper() -
UnrecognizedPropertyExceptionMapper
-
-
Method Details
-
toProblem
protected HttpProblem toProblem(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception) - Specified by:
toProblemin classExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
-