Exception: ZK::Exceptions::KeeperException
- Inherits:
-
StandardError
- Object
- StandardError
- ZK::Exceptions::KeeperException
- Defined in:
- lib/zk/exceptions.rb
Overview
these errors are returned rather than the driver level errors
Direct Known Subclasses
ApiError, AuthFailed, BadArguments, BadVersion, ConnectionLoss, DataInconsistency, InterruptedSessionException, InvalidACL, InvalidCallback, MarshallingError, NoAuth, NoChildrenForEphemerals, NoNode, NodeExists, NotEmpty, OperationTimeOut, RunTimeInconsistency, SessionExpired, SystemError, Unimplemented
Class Method Summary (collapse)
Class Method Details
+ (Object) by_code(code)
35 36 37 |
# File 'lib/zk/exceptions.rb', line 35 def self.by_code(code) ERROR_MAP.fetch(code.to_i) { raise "API ERROR: no exception defined for code: #{code}" } end |
+ (Boolean) recognized_code?(code)
31 32 33 |
# File 'lib/zk/exceptions.rb', line 31 def self.recognized_code?(code) ERROR_MAP.include?(code) end |