@staticmethod
    def _checkJobStoreCreation(create, exists, jobStoreString):
        """
        Consistency checks which will result in exceptions if we attempt to overwrite an existing
        job store. This method must be called by the constructor of a subclass before any
        modification are made. Either create or exists must be True but not both.

        :param bool create: a boolean indicating if the config will try to create a new job store

        :param bool exists: a boolean indicating if the config will try to reconnect to an existing
               job store

        :raise JobStoreCreationException:  if create == exists
        """
        if create and exists:
            raise JobStoreCreationException("The job store '%s' already exists. Use --restart to "
                                            "resume the workflow, or remove the job store with "
                                            "'toil clean' to start the workflow from scratch" %
                                            jobStoreString) 
        if not create and not exists:
            raise JobStoreCreationException("The job store '%s' does not exist, so there "
                                            "is nothing to restart." % jobStoreString)
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py/AbstractJobStore._checkJobStoreCreation/original