Examples of StructureException


Examples of com.almworks.jira.structure.api.StructureException

    if (under > 0) {
      int parentIndex = myIssues.indexOf(under);
      for (int p = parentIndex; p >= 0; p = getParentIndex(p)) {
        long pathIssue = myIssues.get(p);
        if (forest.containsIssue(pathIssue)) {
          throw new StructureException(INVALID_MOVE,
            "cannot merge " + forest + " in " + this + " under " + under + ": issue "
              + pathIssue + " on parent path is in the merged forest");
        }
      }
    }
View Full Code Here

Examples of com.almworks.jira.structure.api.StructureException

    if (under <= 0) {
      parentIndex = -1;
    } else {
      parentIndex = myIssues.indexOf(under);
      if (parentIndex < 0) {
        throw new StructureException(ISSUE_MISSING_FROM_STRUCTURE, null, under,
          "cannot find under " + under + " in " + this);
      }
    }
    return parentIndex;
  }
View Full Code Here

Examples of com.almworks.jira.structure.api.StructureException

    checkModification();
    int parentIndex = getUnderIndex(under);
    if (parentIndex >= 0) {
      int underParentIndex = getPathIndexAtDepth(parentIndex, myDepths.get(index));
      if (underParentIndex == index) {
        throw new StructureException(StructureError.INVALID_MOVE, null, under,
          this + ": cannot move " + issue + " (index " + index + ") under " + under);
      }
    }
    Forest forest = removeSubtreeAtIndex(index);
    assert forest != null;
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.