Add invalidValue to exception message if validation fails


#1

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.


#2

I moved the question to the Hibernate Validator channel.


#3

Hi @OBreidenbach,

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