Create ValidationExceptions with dependencies injected.