MethodValidationPostProcessor could be more open to extension [SPR-12863] #17461
Using JSR303 annotations and bean validation works gret for validating, but sadly the ConstraintViolationException class thrown by MethodValidationInterceptor does not provide any useful output as to the context of validation. So the log file does not help telling what went wrong.
In order to work around this, it would be nice to wrap/extend Spring to prove an Exception with a better Error message.
Ideally I would want to override a method that creates the interceptor, such as:
or something similar like
so that I can provide an interceptor that throws an Exception with a more useful message.
Juergen Hoeller commented
I've introduced a