| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<KeeperException.Code>
org.apache.zookeeper.KeeperException.Code
public static enum KeeperException.Code
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 Summary | |
|---|---|
| APIERRORAPI errors. | |
| AUTHFAILEDClient authentication failed | |
| BADARGUMENTSInvalid arguments | |
| BADVERSIONVersion conflict | |
| CONNECTIONLOSSConnection to the server has been lost | |
| DATAINCONSISTENCYA data inconsistency was found | |
| INVALIDACLInvalid ACL specified | |
| INVALIDCALLBACKInvalid callback specified | |
| MARSHALLINGERRORError while marshalling or unmarshalling data | |
| NOAUTHNot authenticated | |
| NOCHILDRENFOREPHEMERALSEphemeral nodes may not have children | |
| NODEEXISTSThe node already exists | |
| NONODENode does not exist | |
| NOTEMPTYThe node has children | |
| OKEverything is OK | |
| OPERATIONTIMEOUTOperation timeout | |
| RUNTIMEINCONSISTENCYA runtime inconsistency was found | |
| SESSIONEXPIREDThe session has been expired by the server | |
| SYSTEMERRORSystem and server-side errors. | |
| UNIMPLEMENTEDOperation is unimplemented | |
| Field Summary | 
|---|
| Fields inherited from interface org.apache.zookeeper.KeeperException.CodeDeprecated | 
|---|
| APIError, AuthFailed, BadArguments, BadVersion, ConnectionLoss, DataInconsistency, InvalidACL, InvalidCallback, MarshallingError, NoAuth, NoChildrenForEphemerals, NodeExists, NoNode, NotEmpty, Ok, OperationTimeout, RuntimeInconsistency, SessionExpired, SystemError, Unimplemented | 
| Method Summary | |
|---|---|
| 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. | 
| Methods inherited from class java.lang.Enum | 
|---|
| compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
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 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
| Method Detail | 
|---|
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 name
NullPointerException - if the argument is nullpublic int intValue()
public static KeeperException.Code get(int code)
code - int error code
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||