Examples of VcsException


Examples of com.intellij.openapi.vcs.VcsException

  public void executeCommand(@NotNull MksVcs mksVcs, @NotNull List<VcsException> exceptions,
                 @NotNull VirtualFile[] affectedFiles) throws VcsException {
    if (affectedFiles.length > 1) {
      //noinspection ThrowableInstanceNeverThrown
      exceptions.add(new VcsException("expecting only one target for this action"));
      return;
    }
    TriclopsSiMembers[] members = createSiMembers(mksVcs, affectedFiles);
    for (TriclopsSiMembers siMembers : members) {
      try {
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

        try {
          MKSHelper.aboutBox();
        } catch (TriclopsException e) {
          ArrayList<VcsException> errors = new ArrayList<VcsException>();
          //noinspection ThrowableInstanceNeverThrown
          errors.add(new VcsException(e));
          MksVcs.getInstance(mksVcs.getProject()).showErrors(errors, "About MKS");
        }
      }
    });
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

        handler.addLineListener(new GitLineHandlerAdapter() {
            @Override
            public void onLineAvailable(final String line, final Key outputType) {
                if (outputType == ProcessOutputTypes.STDERR && line.startsWith(" ! [")) {
                    //noinspection ThrowableInstanceNeverThrown
                    handler.addError(new VcsException(prefix + line));
                }
            }
        });
    }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

                log.warn("Error fetching: " + h.errors());
                Collection<Exception> errors = Lists.newArrayList();
                if (!h.hadAuthRequest()) {
                    errors.addAll(h.errors());
                } else {
                    errors.add(new VcsException("Authentication failed"));
                }
                result.set(GitFetchResult.error(errors));
            }
        });
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

    final VcsFileSystem vcsFileSystem = ((VcsFileSystem)getFileSystem());

    try {
      final String content = myContentRevision.getContent();
      if (content == null) {
        throw new VcsException("Could not load content");
      }
      ApplicationManager.getApplication().runWriteAction(new Runnable() {
        public void run() {
          vcsFileSystem.fireBeforeContentsChange(this, ContentRevisionVirtualFile.this);
        }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

    if (vFile == null) return null;
    try {
      return vFile.contentsToByteArray();
    }
    catch (IOException e) {
      throw new VcsException(e);
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

      finally {
        rollbackChanges();
      }
    }
    catch (IOException e) {
      throw new VcsException(e);
    }
  }
View Full Code Here

Examples of jetbrains.buildServer.vcs.VcsException

    final String message = "'" + cmdName + "' command failed.\n" +
     (!StringUtil.isEmpty(stderr) ? "stderr: " + stderr + "\n" : "") +
     (!StringUtil.isEmpty(stdout) ? "stdout: " + stdout + "\n" : "") +
     (exception != null ? "exception: " + exception.getLocalizedMessage() : "");
    Loggers.VCS.warn(message);
    throw new VcsException(message);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.