public enum ConnectionError extends Enum<ConnectionError>
Enum Constant and Description |
---|
BAD_CLIENT |
BAD_CREDENTIALS |
BAD_SERVER |
CONNECT_FAILED |
DISCONNECTED |
NONE |
RECEIVE_FAILED |
RECONNECT_FAILED |
SEND_FAILED |
SERVER_FULL |
SERVER_MESSAGE |
WRITE_FAILED |
Modifier and Type | Method and Description |
---|---|
static ConnectionError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionError NONE
public static final ConnectionError CONNECT_FAILED
public static final ConnectionError SEND_FAILED
public static final ConnectionError DISCONNECTED
public static final ConnectionError RECEIVE_FAILED
public static final ConnectionError WRITE_FAILED
public static final ConnectionError BAD_SERVER
public static final ConnectionError BAD_CREDENTIALS
public static final ConnectionError BAD_CLIENT
public static final ConnectionError SERVER_FULL
public static final ConnectionError SERVER_MESSAGE
public static final ConnectionError RECONNECT_FAILED
public static ConnectionError[] values()
for (ConnectionError c : ConnectionError.values()) System.out.println(c);
public static ConnectionError 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 null