Enum zookeeper_async::ZkError
source · #[repr(i32)]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.
Trait Implementations§
source§impl Error for ZkError
impl Error for ZkError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl FromPrimitive for ZkError
impl FromPrimitive for ZkError
source§impl Ord for ZkError
impl Ord for ZkError
source§impl PartialEq<ZkError> for ZkError
impl PartialEq<ZkError> for ZkError
source§impl PartialOrd<ZkError> for ZkError
impl PartialOrd<ZkError> for ZkError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more