Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.3.0
-
None
-
None
Description
Currently the code creates a zookeeper.NodeExistsException object with a string argument "node exists".
Including the name of the node that caused the exception would be useful, in that it allows user code like the following:
example1
try: zookeeper.create(zh, n1, ...) zookeeper.create(zh, n2, ...) except zookeeper.NodeExistsException, n: print "Node \"%s\" exists." % n