public enum WsErrorCode extends java.lang.Enum<WsErrorCode>
| Enum Constant and Description |
|---|
CLIENT_CLOSED |
COMMAND_REQUIRED |
INTERNAL_ERROR |
INVALID_JSON_DATA |
UNKNOWN_COMMAND |
| Modifier and Type | Method and Description |
|---|---|
static WsErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WsErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WsErrorCode INVALID_JSON_DATA
public static final WsErrorCode COMMAND_REQUIRED
public static final WsErrorCode UNKNOWN_COMMAND
public static final WsErrorCode CLIENT_CLOSED
public static final WsErrorCode INTERNAL_ERROR
public static WsErrorCode[] values()
for (WsErrorCode c : WsErrorCode.values()) System.out.println(c);
public static WsErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null