TRUNK-4296: Create new ValidationException and throw it instead of APIException when validation fails