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