@InterfaceAudience.Public public static enum KeeperException.Code extends Enum<KeeperException.Code> implements KeeperException.CodeDeprecated
Enum Constant and Description |
---|
APIERROR
API errors.
|
AUTHFAILED
Client authentication failed
|
BADARGUMENTS
Invalid arguments
|
BADVERSION
Version conflict
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
|
NEWCONFIGNOQUORUM
No quorum of new config is connected and up-to-date with the leader of last commmitted config - try
invoking reconfiguration after new servers are connected and synced
|
NOAUTH
Not authenticated
|
NOCHILDRENFOREPHEMERALS
Ephemeral nodes may not have children
|
NODEEXISTS
The node already exists
|
NONODE
Node does not exist
|
NOTEMPTY
The node has children
|
NOTREADONLY
State-changing request is passed to read-only server
|
NOWATCHER
Attempts to remove a non-existing watcher
|
OK
Everything is OK
|
OPERATIONTIMEOUT
Operation timeout
|
QUOTAEXCEEDED
Exceeded the quota that was set on the path.
|
RECONFIGDISABLED
Attempts to perform a reconfiguration operation when reconfiguration feature is disabled.
|
RECONFIGINPROGRESS
Another reconfiguration is in progress -- concurrent reconfigs not supported (yet)
|
REQUESTTIMEOUT
Request not completed within max allowed time.
|
RUNTIMEINCONSISTENCY
A runtime inconsistency was found
|
SESSIONCLOSEDREQUIRESASLAUTH
The session has been closed by server because server requires client to do authentication
with configured authentication scheme at the server, but client is not configured with
required authentication scheme or configured but authentication failed
(i.e.
|
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.
|
THROTTLEDOP
Operation was throttled and not executed at all.
|
UNIMPLEMENTED
Operation is unimplemented
|
UNKNOWNSESSION
Unknown session (internal server use only)
|
APIError, AuthFailed, BadArguments, BadVersion, ConnectionLoss, DataInconsistency, EphemeralOnLocalSession, InvalidACL, InvalidCallback, MarshallingError, NewConfigNoQuorum, NoAuth, NoChildrenForEphemerals, NodeExists, NoNode, NotEmpty, Ok, OperationTimeout, ReconfigInProgress, RuntimeInconsistency, SessionExpired, SystemError, Unimplemented, UnknownSession
Modifier and Type | Method and Description |
---|---|
static KeeperException.Code |
get(int code)
Get the Code value for a particular integer error code
|
int |
intValue()
Get the int value for a particular Code.
|
static KeeperException.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeeperException.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeeperException.Code OK
public static final KeeperException.Code SYSTEMERROR
APIERROR
, are system errors.public static final KeeperException.Code RUNTIMEINCONSISTENCY
public static final KeeperException.Code DATAINCONSISTENCY
public static final KeeperException.Code CONNECTIONLOSS
public static final KeeperException.Code MARSHALLINGERROR
public static final KeeperException.Code UNIMPLEMENTED
public static final KeeperException.Code OPERATIONTIMEOUT
public static final KeeperException.Code BADARGUMENTS
public static final KeeperException.Code NEWCONFIGNOQUORUM
public static final KeeperException.Code RECONFIGINPROGRESS
public static final KeeperException.Code UNKNOWNSESSION
public static final KeeperException.Code APIERROR
SYSTEMERROR
).public static final KeeperException.Code NONODE
public static final KeeperException.Code NOAUTH
public static final KeeperException.Code BADVERSION
public static final KeeperException.Code NOCHILDRENFOREPHEMERALS
public static final KeeperException.Code NODEEXISTS
public static final KeeperException.Code NOTEMPTY
public static final KeeperException.Code SESSIONEXPIRED
public static final KeeperException.Code INVALIDCALLBACK
public static final KeeperException.Code INVALIDACL
public static final KeeperException.Code AUTHFAILED
public static final KeeperException.Code SESSIONMOVED
public static final KeeperException.Code NOTREADONLY
public static final KeeperException.Code EPHEMERALONLOCALSESSION
public static final KeeperException.Code NOWATCHER
public static final KeeperException.Code REQUESTTIMEOUT
public static final KeeperException.Code RECONFIGDISABLED
public static final KeeperException.Code SESSIONCLOSEDREQUIRESASLAUTH
public static final KeeperException.Code QUOTAEXCEEDED
public static final KeeperException.Code THROTTLEDOP
public static KeeperException.Code[] values()
for (KeeperException.Code c : KeeperException.Code.values()) System.out.println(c);
public static KeeperException.Code valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int intValue()
public static KeeperException.Code get(int code)
code
- int error codeCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.