Changed ValidationException to IllegalArgumentException.