Class UnrecognizedPropertyExceptionMapper
- java.lang.Object
-
- com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
-
- com.tietoevry.quarkus.resteasy.problem.jackson.UnrecognizedPropertyExceptionMapper
-
- All Implemented Interfaces:
javax.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)
-
-
Field Summary
-
Fields inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
postProcessorsRegistry
-
-
Constructor Summary
Constructors Constructor Description UnrecognizedPropertyExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpProblemtoProblem(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception)-
Methods inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
toResponse
-
-
-
-
Method Detail
-
toProblem
protected HttpProblem toProblem(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception)
- Specified by:
toProblemin classExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
-
-