Module: Zookeeper::Exceptions
- Includes:
- Constants
- Included in:
- CZookeeper, ZookeeperBase, ZookeeperExceptions
- Defined in:
- lib/zookeeper/exceptions.rb,
ext/zkrb.c
Defined Under Namespace
Classes: ApiError, AuthFailed, BadArguments, BadVersion, Closing, ConnectionClosed, ConnectionLoss, ContinuationTimeoutError, DataInconsistency, DataTooLargeException, EverythingOk, HandleClosedException, InheritedConnectionError, InterruptedException, InvalidACL, InvalidCallback, InvalidState, MarshallingError, NoAuth, NoChildrenForEphemerals, NoNode, NodeExists, NotConnected, NotEmpty, Nothing, OperationTimeOut, RunTimeInconsistency, SessionExpired, SessionMoved, ShuttingDownException, SystemError, Unimplemented, ZookeeperException
Constant Summary collapse
- ExpiredSession =
yes, make an alias, this is the way zookeeper refers to it
SessionExpired
Constants included from Constants
Constants::CONNECTED_EVENT_VALUES, Constants::EVENT_TYPE_NAMES, Constants::STATE_NAMES, Constants::ZAPIERROR, Constants::ZAUTHFAILED, Constants::ZBADARGUMENTS, Constants::ZBADVERSION, Constants::ZCLOSING, Constants::ZCONNECTIONLOSS, Constants::ZDATAINCONSISTENCY, Constants::ZINVALIDACL, Constants::ZINVALIDCALLBACK, Constants::ZINVALIDSTATE, Constants::ZKRB_ASYNC_CONTN_ID, Constants::ZKRB_GLOBAL_CB_REQ, Constants::ZMARSHALLINGERROR, Constants::ZNOAUTH, Constants::ZNOCHILDRENFOREPHEMERALS, Constants::ZNODEEXISTS, Constants::ZNONODE, Constants::ZNOTEMPTY, Constants::ZNOTHING, Constants::ZOK, Constants::ZOO_ASSOCIATING_STATE, Constants::ZOO_AUTH_FAILED_STATE, Constants::ZOO_CHANGED_EVENT, Constants::ZOO_CHILD_EVENT, Constants::ZOO_CLOSED_STATE, Constants::ZOO_CONNECTED_STATE, Constants::ZOO_CONNECTING_STATE, Constants::ZOO_CREATED_EVENT, Constants::ZOO_DELETED_EVENT, Constants::ZOO_EPHEMERAL, Constants::ZOO_EXPIRED_SESSION_STATE, Constants::ZOO_LOG_LEVEL_DEBUG, Constants::ZOO_LOG_LEVEL_ERROR, Constants::ZOO_LOG_LEVEL_INFO, Constants::ZOO_LOG_LEVEL_WARN, Constants::ZOO_NOTWATCHING_EVENT, Constants::ZOO_SEQUENCE, Constants::ZOO_SESSION_EVENT, Constants::ZOPERATIONTIMEOUT, Constants::ZRUNTIMEINCONSISTENCY, Constants::ZSESSIONEXPIRED, Constants::ZSESSIONMOVED, Constants::ZSYSTEMERROR, Constants::ZUNIMPLEMENTED
Constants included from ACLs::Constants
ACLs::Constants::ZOO_ANYONE_ID_UNSAFE, ACLs::Constants::ZOO_AUTH_IDS, ACLs::Constants::ZOO_CREATOR_ALL_ACL, ACLs::Constants::ZOO_OPEN_ACL_UNSAFE, ACLs::Constants::ZOO_PERM_ADMIN, ACLs::Constants::ZOO_PERM_ALL, ACLs::Constants::ZOO_PERM_CREATE, ACLs::Constants::ZOO_PERM_DELETE, ACLs::Constants::ZOO_PERM_READ, ACLs::Constants::ZOO_PERM_WRITE, ACLs::Constants::ZOO_READ_ACL_UNSAFE
Class Method Summary collapse
Methods included from Constants
#event_by_value, #state_by_value
Class Method Details
.by_code(code) ⇒ Object
.raise_on_error(code) ⇒ Object
130 131 132 133 |
# File 'lib/zookeeper/exceptions.rb', line 130 def self.raise_on_error(code) exc = self.by_code(code) raise exc unless exc == EverythingOk end |