<s> """<STR_LIT>""" <EOL> from collections import defaultdict <EOL> class KazooException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class ZookeeperError ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class CancelledError ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class ConfigurationError ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class ZookeeperStoppedError ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class ConnectionDropped ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class LockTimeout ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class WriterNotClosedException ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> class SaslException ( KazooException ) : <EOL> """<STR_LIT>""" <EOL> def _invalid_error_code ( ) : <EOL> raise RuntimeError ( '<STR_LIT>' ) <EOL> EXCEPTIONS = defaultdict ( _invalid_error_code ) <EOL> def _zookeeper_exception ( code ) : <EOL> def decorator ( klass ) : <EOL> def create ( * args , ** kwargs ) : <EOL> return klass ( args , kwargs ) <EOL> EXCEPTIONS [ code ] = create <EOL> klass . code = code <EOL> return klass <EOL> return decorator <EOL> @ _zookeeper_exception ( <NUM_LIT:0> ) <EOL> class RolledBackError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:1> ) <EOL> class SystemZookeeperError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:2> ) <EOL> class RuntimeInconsistency ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:3> ) <EOL> class DataInconsistency ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:4> ) <EOL> class ConnectionLoss ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:5> ) <EOL> class MarshallingError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:6> ) <EOL> class UnimplementedError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:7> ) <EOL> class OperationTimeoutError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:8> ) <EOL> class BadArgumentsError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT:100> ) <EOL> class APIError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NoNodeError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NoAuthError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class BadVersionError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NoChildrenForEphemeralsError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NodeExistsError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NotEmptyError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class SessionExpiredError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class InvalidCallbackError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class InvalidACLError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class AuthFailedError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class SessionMovedError ( ZookeeperError ) : <EOL> pass <EOL> @ _zookeeper_exception ( - <NUM_LIT> ) <EOL> class NotReadOnlyCallError ( ZookeeperError ) : <EOL> """<STR_LIT>""" <EOL> class ConnectionClosedError ( SessionExpiredError ) : <EOL> """<STR_LIT>""" <EOL> ConnectionLossException = ConnectionLoss <EOL> MarshallingErrorException = MarshallingError <EOL> SystemErrorException = SystemZookeeperError <EOL> RuntimeInconsistencyException = RuntimeInconsistency <EOL> DataInconsistencyException = DataInconsistency <EOL> UnimplementedException = UnimplementedError <EOL> OperationTimeoutException = OperationTimeoutError <EOL> BadArgumentsException = BadArgumentsError <EOL> ApiErrorException = APIError <EOL> NoNodeException = NoNodeError <EOL> NoAuthException = NoAuthError <EOL> BadVersionException = BadVersionError <EOL> NoChildrenForEphemeralsException = NoChildrenForEphemeralsError <EOL> NodeExistsException = NodeExistsError <EOL> InvalidACLException = InvalidACLError <EOL> AuthFailedException = AuthFailedError <EOL> NotEmptyException = NotEmptyError <EOL> SessionExpiredException = SessionExpiredError <EOL> InvalidCallbackException = InvalidCallbackError </s>
