pub enum ZkError {
Show 23 variants
APIError,
AuthFailed,
BadArguments,
BadVersion,
ConnectionLoss,
DataInconsistency,
EphemeralOnLocalSession,
InvalidACL,
InvalidCallback,
MarshallingError,
NoAuth,
NoChildrenForEphemerals,
NodeExists,
NoNode,
NotEmpty,
NotReadOnly,
NoWatcher,
OperationTimeout,
RuntimeInconsistency,
SessionExpired,
SessionMoved,
SystemError,
Unimplemented,
}
Expand description
Basic type for errors returned from the server.
Variants§
APIError
This code is never returned from the server. It should not be used other than to indicate a range. Specifically error codes greater than this value are API errors (while values less than this indicate a system error).
AuthFailed
Client authentication failed.
BadArguments
Invalid arguments.
BadVersion
Version conflict in set
operation. In case of reconfiguration: reconfig requested from
config version X but last seen config has a different version Y.
ConnectionLoss
Connection to the server has been lost.
DataInconsistency
A data inconsistency was found.
EphemeralOnLocalSession
Attempt to create ephemeral node on a local session.
InvalidACL
Invalid Acl
specified.
InvalidCallback
Invalid callback specified.
MarshallingError
Error while marshalling or unmarshalling data.
NoAuth
Not authenticated.
NoChildrenForEphemerals
Ephemeral nodes may not have children.
NodeExists
Request to create node that already exists.
NoNode
Attempted to read a node that does not exist.
NotEmpty
The node has children.
NotReadOnly
State-changing request is passed to read-only server.
NoWatcher
Attempt to remove a non-existing watcher.
OperationTimeout
Operation timeout.
RuntimeInconsistency
A runtime inconsistency was found.
SessionExpired
The session has been expired by the server.
SessionMoved
Session moved to another server, so operation is ignored.
SystemError
System and server-side errors. This is never thrown by the server, it shouldn’t be used
other than to indicate a range. Specifically error codes greater than this value, but lesser
than APIError
, are system errors.
Unimplemented
Operation is unimplemented.