#[repr(i32)]pub enum ZkError {
Show 23 variants
APIError = -100,
AuthFailed = -115,
BadArguments = -8,
BadVersion = -103,
ConnectionLoss = -4,
DataInconsistency = -3,
EphemeralOnLocalSession = -120,
InvalidACL = -114,
InvalidCallback = -113,
MarshallingError = -5,
NoAuth = -102,
NoChildrenForEphemerals = -108,
NodeExists = -110,
NoNode = -101,
NotEmpty = -111,
NotReadOnly = -119,
NoWatcher = -121,
OperationTimeout = -7,
RuntimeInconsistency = -2,
SessionExpired = -112,
SessionMoved = -118,
SystemError = -1,
Unimplemented = -6,
}
Expand description
Basic type for errors returned from the server.
Variants§
APIError = -100
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 = -115
Client authentication failed.
BadArguments = -8
Invalid arguments.
BadVersion = -103
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 = -4
Connection to the server has been lost.
DataInconsistency = -3
A data inconsistency was found.
EphemeralOnLocalSession = -120
Attempt to create ephemeral node on a local session.
InvalidACL = -114
Invalid Acl
specified.
InvalidCallback = -113
Invalid callback specified.
MarshallingError = -5
Error while marshalling or unmarshalling data.
NoAuth = -102
Not authenticated.
NoChildrenForEphemerals = -108
Ephemeral nodes may not have children.
NodeExists = -110
Request to create node that already exists.
NoNode = -101
Attempted to read a node that does not exist.
NotEmpty = -111
The node has children.
NotReadOnly = -119
State-changing request is passed to read-only server.
NoWatcher = -121
Attempt to remove a non-existing watcher.
OperationTimeout = -7
Operation timeout.
RuntimeInconsistency = -2
A runtime inconsistency was found.
SessionExpired = -112
The session has been expired by the server.
SessionMoved = -118
Session moved to another server, so operation is ignored.
SystemError = -1
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 = -6
Operation is unimplemented.