Package org.apache.zookeeper
Enum KeeperException.Code
- java.lang.Object
- 
- java.lang.Enum<KeeperException.Code>
- 
- org.apache.zookeeper.KeeperException.Code
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<KeeperException.Code>,- KeeperException.CodeDeprecated
 - Enclosing class:
- KeeperException
 
 @Public public static enum KeeperException.Code extends Enum<KeeperException.Code> implements KeeperException.CodeDeprecated Codes which represent the various KeeperException types. This enum replaces the deprecated earlier static final int constants. The old, deprecated, values are in "camel case" while the new enum values are in all CAPS.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description APIERRORAPI errors.AUTHFAILEDClient authentication failedBADARGUMENTSInvalid argumentsBADVERSIONVersion conflict In case of reconfiguration: reconfig requested from config version X but last seen config has a different version YCONNECTIONLOSSConnection to the server has been lostDATAINCONSISTENCYA data inconsistency was foundEPHEMERALONLOCALSESSIONAttempt to create ephemeral node on a local sessionINVALIDACLInvalid ACL specifiedINVALIDCALLBACKInvalid callback specifiedMARSHALLINGERRORError while marshalling or unmarshalling dataNEWCONFIGNOQUORUMNo 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 syncedNOAUTHNot authenticatedNOCHILDRENFOREPHEMERALSEphemeral nodes may not have childrenNODEEXISTSThe node already existsNONODENode does not existNOTEMPTYThe node has childrenNOTREADONLYState-changing request is passed to read-only serverNOWATCHERAttempts to remove a non-existing watcherOKEverything is OKOPERATIONTIMEOUTOperation timeoutQUOTAEXCEEDEDExceeded the quota that was set on the path.RECONFIGDISABLEDAttempts to perform a reconfiguration operation when reconfiguration feature is disabled.RECONFIGINPROGRESSAnother reconfiguration is in progress -- concurrent reconfigs not supported (yet)REQUESTTIMEOUTRequest not completed within max allowed time.RUNTIMEINCONSISTENCYA runtime inconsistency was foundSESSIONCLOSEDREQUIRESASLAUTHThe 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.SESSIONEXPIREDThe session has been expired by the serverSESSIONMOVEDSession moved to another server, so operation is ignoredSYSTEMERRORSystem and server-side errors.THROTTLEDOPOperation was throttled and not executed at all.UNIMPLEMENTEDOperation is unimplementedUNKNOWNSESSIONUnknown session (internal server use only)
 - 
Field Summary- 
Fields inherited from interface org.apache.zookeeper.KeeperException.CodeDeprecatedAPIError, AuthFailed, BadArguments, BadVersion, ConnectionLoss, DataInconsistency, EphemeralOnLocalSession, InvalidACL, InvalidCallback, MarshallingError, NewConfigNoQuorum, NoAuth, NoChildrenForEphemerals, NodeExists, NoNode, NotEmpty, Ok, OperationTimeout, ReconfigInProgress, RuntimeInconsistency, SessionExpired, SystemError, Unimplemented, UnknownSession
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeeperException.Codeget(int code)Get the Code value for a particular integer error codeintintValue()Get the int value for a particular Code.static KeeperException.CodevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
OKpublic static final KeeperException.Code OK Everything is OK
 - 
SYSTEMERRORpublic static final KeeperException.Code 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 thanAPIERROR, are system errors.
 - 
RUNTIMEINCONSISTENCYpublic static final KeeperException.Code RUNTIMEINCONSISTENCY A runtime inconsistency was found
 - 
DATAINCONSISTENCYpublic static final KeeperException.Code DATAINCONSISTENCY A data inconsistency was found
 - 
CONNECTIONLOSSpublic static final KeeperException.Code CONNECTIONLOSS Connection to the server has been lost
 - 
MARSHALLINGERRORpublic static final KeeperException.Code MARSHALLINGERROR Error while marshalling or unmarshalling data
 - 
UNIMPLEMENTEDpublic static final KeeperException.Code UNIMPLEMENTED Operation is unimplemented
 - 
OPERATIONTIMEOUTpublic static final KeeperException.Code OPERATIONTIMEOUT Operation timeout
 - 
BADARGUMENTSpublic static final KeeperException.Code BADARGUMENTS Invalid arguments
 - 
NEWCONFIGNOQUORUMpublic static final KeeperException.Code 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
 - 
RECONFIGINPROGRESSpublic static final KeeperException.Code RECONFIGINPROGRESS Another reconfiguration is in progress -- concurrent reconfigs not supported (yet)
 - 
UNKNOWNSESSIONpublic static final KeeperException.Code UNKNOWNSESSION Unknown session (internal server use only)
 - 
APIERRORpublic static final KeeperException.Code APIERROR API 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 are API errors (while values less than this indicate aSYSTEMERROR).
 - 
NONODEpublic static final KeeperException.Code NONODE Node does not exist
 - 
NOAUTHpublic static final KeeperException.Code NOAUTH Not authenticated
 - 
BADVERSIONpublic static final KeeperException.Code BADVERSION Version conflict In case of reconfiguration: reconfig requested from config version X but last seen config has a different version Y
 - 
NOCHILDRENFOREPHEMERALSpublic static final KeeperException.Code NOCHILDRENFOREPHEMERALS Ephemeral nodes may not have children
 - 
NODEEXISTSpublic static final KeeperException.Code NODEEXISTS The node already exists
 - 
NOTEMPTYpublic static final KeeperException.Code NOTEMPTY The node has children
 - 
SESSIONEXPIREDpublic static final KeeperException.Code SESSIONEXPIRED The session has been expired by the server
 - 
INVALIDCALLBACKpublic static final KeeperException.Code INVALIDCALLBACK Invalid callback specified
 - 
INVALIDACLpublic static final KeeperException.Code INVALIDACL Invalid ACL specified
 - 
AUTHFAILEDpublic static final KeeperException.Code AUTHFAILED Client authentication failed
 - 
SESSIONMOVEDpublic static final KeeperException.Code SESSIONMOVED Session moved to another server, so operation is ignored
 - 
NOTREADONLYpublic static final KeeperException.Code NOTREADONLY State-changing request is passed to read-only server
 - 
EPHEMERALONLOCALSESSIONpublic static final KeeperException.Code EPHEMERALONLOCALSESSION Attempt to create ephemeral node on a local session
 - 
NOWATCHERpublic static final KeeperException.Code NOWATCHER Attempts to remove a non-existing watcher
 - 
REQUESTTIMEOUTpublic static final KeeperException.Code REQUESTTIMEOUT Request not completed within max allowed time.
 - 
RECONFIGDISABLEDpublic static final KeeperException.Code RECONFIGDISABLED Attempts to perform a reconfiguration operation when reconfiguration feature is disabled.
 - 
SESSIONCLOSEDREQUIRESASLAUTHpublic static final KeeperException.Code 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. wrong credential used.).
 - 
QUOTAEXCEEDEDpublic static final KeeperException.Code QUOTAEXCEEDED Exceeded the quota that was set on the path.
 - 
THROTTLEDOPpublic static final KeeperException.Code THROTTLEDOP Operation was throttled and not executed at all. This error code indicates that zookeeper server is under heavy load and can't process incoming requests at full speed; please retry with back off.
 
- 
 - 
Method Detail- 
valuespublic static KeeperException.Code[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeeperException.Code c : KeeperException.Code.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static KeeperException.Code valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
intValuepublic int intValue() Get the int value for a particular Code.- Returns:
- error code as integer
 
 - 
getpublic static KeeperException.Code get(int code) Get the Code value for a particular integer error code- Parameters:
- code- int error code
- Returns:
- Code value corresponding to specified int code, if null throws IllegalArgumentException
 
 
- 
 
-