Sorry if this question has been covered somewhere before. If it has please link me to it, I haven't been able to find a satisfactory answer as yet.
I've been looking around trying to find a way to have the error messages provided by my javax validation more specific.
The message I currently have for my @Min annotation is specified in the ValidationMessages.properties file:
javax.validation.constraints.Min.message=The value of this variable must be less than {value}.
and this prints out as would be expected
The value of this variable must be less than 1
What I would like to have is the message also include the name of the variable (and class) that has failed the validation as well as the value of the variable that failed. So more like.
The value of class.variable was 0 but not must be less than 1
Any help would be greatly appreciated.
Klee