Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1753

Bean validation handler should not swallow ConstraintDefinitionException, ConstraintDeclarationException nor GroupDefinitionException

    XMLWordPrintable

Details

    Description

      Resteasy default implementation of org.jboss.resteasy.spi.validation.GeneralValidator handles all javax.validation.ValidationException the same way wrapping them in a org.jboss.resteasy.api.validation.ResteasyViolationException which is a subclass of javax.validation.ConstraintViolationException.

      So it is not possible to handle any other javax.validation.ValidationException subtypes such as javax.validation.ConstraintDeclarationException in a dedicated ExceptionMapper<ConstraintDeclarationException> since the exception is not correctly thrown.

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              nicones Nicolas NESMON
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: