Examples of VcsException


Examples of com.intellij.openapi.vcs.VcsException

        Map<MksSandboxInfo, String[]> members = createMembers(mksVcs, affectedFiles);
        for (Map.Entry<MksSandboxInfo, String[]> entry : members.entrySet()) {
            try {
                perform(entry.getKey(), entry.getValue());
            } catch (APIException e) {
                    exceptions.add(new VcsException(e));

            }
        }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

            } else {
                LOGGER.error(this + " unexpected command output {" + line + "}, expected (" + patternString + ")");
            }
        } catch (IOException e) {
            //noinspection ThrowableInstanceNeverThrown
            errors.add(new VcsException(e));
        } catch (VcsException e) {
            errors.add(e);
        }
    }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

    }

    protected void handleErrorOutput(String errorOutput) {
        if (exitValue == 128 && errorOutput.contains("is not a current or destined or pending member")
            || errorOutput.contains("not yet a member of the sandbox")) {
            errors.add(new VcsException(NOT_A_MEMBER));
            return;
        } else {
            super.handleErrorOutput(
                errorOutput);    //To change body of overridden methods use File | Settings | File Templates.
        }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

  public void execute() {
    try {
      executeCommand();
    } catch (IOException e) {
      //noinspection ThrowableInstanceNeverThrown
      errors.add(new VcsException(e));
      return;
    }
    BufferedReader reader = new BufferedReader(new StringReader(commandOutput));
    String line;
    try {
      while ((line = reader.readLine()) != null) {
        final String path = VcsUtil.getFilePath(line).getPath();
        MksMemberState state = new MksMemberState(VcsRevisionNumber.NULL, VcsRevisionNumber.NULL, null,
            MksMemberState.Status.UNVERSIONED);
        memberStates.put(path, state);
      }
    } catch (IOException e) {
      LOGGER.error("error reading output " + commandOutput, e);
      //noinspection ThrowableInstanceNeverThrown
      errors.add(new VcsException(e));
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

      isMks2007 = (line.contains("2007"));
      LOGGER.info("mks 2007 ? " + isMks2007);
    } catch (IOException e) {
      //noinspection ThrowableInstanceNeverThrown
      errors.add(new VcsException(e));
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

    try {
      for (int i = 0, max = parts.length; i < max; i++) {
        parts[i] = Integer.parseInt(stringParts[i]);
      }
    } catch (NumberFormatException e) {
      throw new VcsException("invalid mks revision number, expects \\d+(.\\d+)*, got " + revision);
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

    try {
      super.executeCommand();
      // todo verifier que le lock s'est bien passé
    } catch (IOException e) {
      //noinspection ThrowableInstanceNeverThrown
      errors.add(new VcsException(e));
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

public abstract class AbstractSingleTargetAPICommand extends AbstractMultipleTargetAPICommand {
  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;
    }

        super.executeCommand(mksVcs, exceptions, affectedFiles);
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

          String port = matcher.group(3);
          tempServers.add(new MksServerInfo(user, host, port));
        } else {
          LOGGER.error("unexpected command output {" + line + "}, expected [user@host:port]");
          //noinspection ThrowableInstanceNeverThrown
          errors.add(new VcsException("ListServers : unexpected line structure " + line));
        }
      }
    } catch (IOException e) {
      //noinspection ThrowableInstanceNeverThrown
      errors.add(new VcsException(e));
    } finally {
      servers = tempServers;
    }
  }
View Full Code Here

Examples of com.intellij.openapi.vcs.VcsException

                if (parts.length < 4) {
                    String errrorMessage = "unexpected command output {" + line +
                            "}, expected 4 parts separated by \\t, while executing " + command;
                    LOGGER.error(errrorMessage, "");
                    //noinspection ThrowableInstanceNeverThrown
                    errors.add(new VcsException(errrorMessage));
                } else {
                    tempChangePackages.add(new MksChangePackage(serverInfo.host, parts[ID], parts[USER], parts[STATE],
                            parts[SUMMARY]));
                }
            }
            changePackages = tempChangePackages;
        } catch (IOException e) {
            //noinspection ThrowableInstanceNeverThrown
            errors.add(new VcsException(e));
        }
    }
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.