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 Details

    • UnrecognizedPropertyExceptionMapper

      public UnrecognizedPropertyExceptionMapper()
    • UnrecognizedPropertyExceptionMapper

      @Inject public UnrecognizedPropertyExceptionMapper(PostProcessorsRegistry postProcessorsRegistry)
  • Method Details

    • toProblem

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