Examples of NoSuchGroupException


Examples of com.google.gerrit.common.errors.NoSuchGroupException

  private void assertAmGroupOwner(final ReviewDb db, final AccountGroup group)
      throws Failure {
    try {
      if (!groupControlFactory.controlFor(group.getId()).isOwner()) {
        throw new Failure(new NoSuchGroupException(group.getId()));
      }
    } catch (NoSuchGroupException e) {
      throw new Failure(new NoSuchGroupException(group.getId()));
    }
  }
View Full Code Here

Examples of com.google.gerrit.common.errors.NoSuchGroupException

  private AccountGroup findGroup(final String name) throws OrmException,
      Failure {
    final AccountGroup g = groupCache.get(new AccountGroup.NameKey(name));
    if (g == null) {
      throw new Failure(new NoSuchGroupException(name));
    }
    return g;
  }
View Full Code Here

Examples of com.google.gerrit.common.errors.NoSuchGroupException

    GroupReference ref = rule.getGroup();
    if (ref.getUUID() == null) {
      final GroupReference group =
          GroupBackends.findBestSuggestion(groupBackend, ref.getName());
      if (group == null) {
        throw new NoSuchGroupException(ref.getName());
      }
      ref.setUUID(group.getUUID());
    }
  }
View Full Code Here

Examples of cu.ftpd.user.groups.NoSuchGroupException

    public Map<String,User> getUsers() {
        return Collections.emptyMap();
    }

    public Group getGroup(String name) throws NoSuchGroupException {
        throw new NoSuchGroupException("Anonymous userbases do not have groups: " + name);
    }
View Full Code Here

Examples of cu.ftpd.user.groups.NoSuchGroupException

        try {
            if (rmi.getGroup(name) != null) {
                return new RemoteGroup(name, this);
            } else {
                // this will never be thrown, since the if-statement causes it to be thrown first
                throw new NoSuchGroupException(name);
            }
        } catch (RemoteException e) {
            System.err.println(e.getMessage()); reinitialize();
            return getGroup(name);
        }
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.