Package org.syncany.plugins.transfer

Examples of org.syncany.plugins.transfer.StorageException


    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.connect();
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here


    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.disconnect();
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.init(createIfRequired);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.download(remoteFile, localFile);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.upload(localFile, remoteFile);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      super.move(sourceFile, targetFile);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

  }

  @Override
  public void connect() throws StorageException {
    if (repoPath == null) {
      throw new StorageException("Repository folder '" + repoPath + "' does not exist or is not writable.");
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      return super.delete(remoteFile);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

    if (isNextOperationSuccessful(operationType, operationDescription)) {
      return super.list(remoteFileClass);
    }
    else {
      throw new StorageException("Operation failed: " + operationDescription);
    }
  }
View Full Code Here

  public void init(boolean createIfRequired) throws StorageException {
    connect();

    if (!testTargetExists() && createIfRequired) {
      if (!repoPath.mkdir()) {
        throw new StorageException("Cannot create repository directory: " + repoPath);
      }
    }

    if (!multichunksPath.mkdir()) {
      throw new StorageException("Cannot create multichunk directory: " + multichunksPath);
    }

    if (!databasesPath.mkdir()) {
      throw new StorageException("Cannot create databases directory: " + databasesPath);
    }

    if (!actionsPath.mkdir()) {
      throw new StorageException("Cannot create actions directory: " + actionsPath);
    }

    if (!transactionsPath.mkdir()) {
      throw new StorageException("Cannot create transactions directory: " + transactionsPath);
    }

    if (!temporaryPath.mkdir()) {
      throw new StorageException("Cannot create temporary directory: " + temporaryPath);
    }
  }
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.StorageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.