Set error messages instead of the validator instance when throwing a ModelValidationException.