docs: def set_exception(self, exception):
          """Sets the exception on the future."""
          if not self.is_done():
              raise TransferNotDoneError(
                  'set_exception can only be called once the transfer is '
                  'complete.')
          self._coordinator.set_exception(exception, override=True)