docs: def _validate_instantiation_options(self, datafile, skip_json_validation):
      """ Helper method to validate all instantiation parameters.
  
      Args:
        datafile: JSON string representing the project.
        skip_json_validation: Boolean representing whether JSON schema validation needs to be skipped or not.
  
      Raises:
        Exception if provided instantiation options are valid.
      """
  
      if not skip_json_validation and not validator.is_datafile_valid(datafile):
        raise exceptions.InvalidInputException(enums.Errors.INVALID_INPUT_ERROR.format('datafile'))
  
      if not validator.is_event_dispatcher_valid(self.event_dispatcher):
        raise exceptions.InvalidInputException(enums.Errors.INVALID_INPUT_ERROR.format('event_dispatcher'))
  
      if not validator.is_logger_valid(self.logger):
        raise exceptions.InvalidInputException(enums.Errors.INVALID_INPUT_ERROR.format('logger'))
  
      if not validator.is_error_handler_valid(self.error_handler):
        raise exceptions.InvalidInputException(enums.Errors.INVALID_INPUT_ERROR.format('error_handler'))