Add invalidValue to exception message if validation fails

If the bean validation fails the BeanValidationEventListener a ConstraintViolationException is thrown. Unfortunately the exception message does not contain the invalid value.
I would be nice, if the invalid value was included in the message.
This could be done in the BeanValidationEventListener or in the ConstraintViolationImpl.

I moved the question to the Hibernate Validator channel.

Hi @OBreidenbach,

You have getInvalidValue() in ConstraintViolation. It should serve your needs.