throw new KeeperException.NoChildrenForEphemeralsException(path);
public void addChild(ZNode zNode) throws KeeperException { if (createMode.isEphemeral()) { throw new KeeperException.NoChildrenForEphemeralsException(); } if (children.containsKey(zNode.getName())) { throw new KeeperException.NodeExistsException(); } children.put(zNode.getName(), zNode); stat.setNumChildren(children.size()); signalNodeEvent(EventType.NodeChildrenChanged); }
return new BadVersionException(); case NOCHILDRENFOREPHEMERALS: return new NoChildrenForEphemeralsException(); case NODEEXISTS: return new NodeExistsException();
throw new KeeperException.NoChildrenForEphemeralsException(path);
return new BadVersionException(); case NOCHILDRENFOREPHEMERALS: return new NoChildrenForEphemeralsException(); case NODEEXISTS: return new NodeExistsException();
return new BadVersionException(); case NOCHILDRENFOREPHEMERALS: return new NoChildrenForEphemeralsException(); case NODEEXISTS: return new NodeExistsException();