public static enum CopycatError.Type extends Enum<CopycatError.Type> implements CopycatError
CopycatError.Type| Enum Constant and Description |
|---|
APPLICATION_ERROR
User application error.
|
COMMAND_ERROR
Write application error.
|
CONFIGURATION_ERROR
Configuration error.
|
ILLEGAL_MEMBER_STATE_ERROR
Illegal member state error.
|
INTERNAL_ERROR
Internal error.
|
NO_LEADER_ERROR
No leader error.
|
QUERY_ERROR
Read application error.
|
UNKNOWN_SESSION_ERROR
Unknown session error.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
id()
Returns the unique error identifier.
|
static CopycatError.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CopycatError.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreateException, forIdpublic static final CopycatError.Type NO_LEADER_ERROR
public static final CopycatError.Type QUERY_ERROR
public static final CopycatError.Type COMMAND_ERROR
public static final CopycatError.Type APPLICATION_ERROR
public static final CopycatError.Type ILLEGAL_MEMBER_STATE_ERROR
public static final CopycatError.Type UNKNOWN_SESSION_ERROR
public static final CopycatError.Type INTERNAL_ERROR
public static final CopycatError.Type CONFIGURATION_ERROR
public static CopycatError.Type[] values()
for (CopycatError.Type c : CopycatError.Type.values()) System.out.println(c);
public static CopycatError.Type 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 byte id()
CopycatErrorid in interface CopycatErrorCopyright © 2013–2017. All rights reserved.