Package org.tmatesoft.svn.core

Examples of org.tmatesoft.svn.core.SVNException


    currentPath = path;

    try {
      currentDirectory = broker.getCollection(myRootDirectory.getURI().append(path));
    } catch (PermissionDeniedException e) {
      throw new SVNException(SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "error: failed on IO."), e);
    }
  }
View Full Code Here


        }
      } catch (FileNotFoundException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);
      } catch (TriggerException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);
      } catch (EXistException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);
      } catch (PermissionDeniedException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);
      } catch (LockException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);
      } catch (IOException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);

      } catch (SAXException e) {
        SVNErrorMessage err = SVNErrorMessage.create(
            SVNErrorCode.IO_ERROR, "error: ."); // TODO: error
        // description
        throw new SVNException(err);

      } finally {
        if (is != null)
          try {
            is.close();
View Full Code Here

  public void closeDir() throws SVNException {
    try {
      currentDirectory = broker.getCollection(currentDirectory.getParentURI());
    } catch (PermissionDeniedException e) {
      throw new SVNException(SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "error: ."), e);
    }

    currentPath = SVNPathUtil.removeTail(currentPath);
  }
View Full Code Here

    try {
      transact.commit(transaction);
    } catch (TransactionException e) {
      SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR,
          "error: failed on transaction's commit.");
      throw new SVNException(err);
    }

    return null;
  }
View Full Code Here

        if (err.getErrorCode() == SVNErrorCode.CANCELLED) {
            throw new SVNCancelException(err);
        } else if (err.getErrorCode().isAuthentication()) {
            throw new SVNAuthenticationException(err);
        } else {
            throw new SVNException(err);
        }
    }
View Full Code Here

        if (err.getErrorCode() == SVNErrorCode.CANCELLED) {
            throw new SVNCancelException(err);
        } else if (err.getErrorCode().isAuthentication()) {
            throw new SVNAuthenticationException(err);
        } else {
            throw new SVNException(err, cause);
        }
    }
View Full Code Here

        if (err1.getErrorCode() == SVNErrorCode.CANCELLED || err2.getErrorCode() == SVNErrorCode.CANCELLED) {
            throw new SVNCancelException(err1);
        } else if (err1.getErrorCode().isAuthentication() || err2.getErrorCode().isAuthentication()) {
            throw new SVNAuthenticationException(err1);
        }
        throw new SVNException(err1);
    }
View Full Code Here

        if (err1.getErrorCode() == SVNErrorCode.CANCELLED || err2.getErrorCode() == SVNErrorCode.CANCELLED) {
            throw new SVNCancelException(err1);
        } else if (err1.getErrorCode().isAuthentication() || err2.getErrorCode().isAuthentication()) {
            throw new SVNAuthenticationException(err1, cause);
        }
        throw new SVNException(err1, cause);
    }
View Full Code Here

        try {
            reader = new BufferedReader(new InputStreamReader(SVNFileUtil.openFileForReading(entriesFile, logLevel, SVNLogType.WC), "UTF-8"));
            line = reader.readLine();
        } catch (FileNotFoundException e) {
            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot read entries file ''{0}'': {1}", new Object[] {entriesFile, e.getLocalizedMessage()});
            throw new SVNException(err);
        } catch (IOException e) {
            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot read entries file ''{0}'': {1}", new Object[] {entriesFile, e.getLocalizedMessage()});
            SVNErrorManager.error(err, e, SVNLogType.WC);
        } catch (SVNException svne) {
            SVNFileType type = SVNFileType.getType(path);
View Full Code Here

    private void fixError(String path, SVNException e, SVNNodeKind kind) throws SVNException {
        SVNErrorMessage err = e.getErrorMessage();
        if (err.getErrorCode() == SVNErrorCode.FS_NOT_FOUND || err.getErrorCode() == SVNErrorCode.RA_DAV_PATH_NOT_FOUND) {
            err = SVNErrorMessage.create(SVNErrorCode.WC_NOT_UP_TO_DATE, kind == SVNNodeKind.DIR ?
                    "Directory ''{0}'' is out of date" : "File ''{0}'' is out of date", path);
            throw new SVNException(err);
        }
        throw e;
    }
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.SVNException

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.