Class 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)
    • Constructor Detail

      • UnrecognizedPropertyExceptionMapper

        public UnrecognizedPropertyExceptionMapper()
    • Method Detail

      • toProblem

        protected HttpProblem toProblem​(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception)
        Specified by:
        toProblem in class ExceptionMapperBase<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>