Package com.bambuser.broadcaster
Enum ConnectionError
- java.lang.Object
-
- java.lang.Enum<ConnectionError>
-
- com.bambuser.broadcaster.ConnectionError
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionError>
public enum ConnectionError extends Enum<ConnectionError>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_CLIENT
BAD_CREDENTIALS
BAD_SERVER
CONNECT_FAILED
DISCONNECTED
NONE
RECEIVE_FAILED
RECONNECT_FAILED
SEND_FAILED
SERVER_FULL
SERVER_MESSAGE
WRITE_FAILED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NONE
public static final ConnectionError NONE
-
CONNECT_FAILED
public static final ConnectionError CONNECT_FAILED
-
SEND_FAILED
public static final ConnectionError SEND_FAILED
-
DISCONNECTED
public static final ConnectionError DISCONNECTED
-
RECEIVE_FAILED
public static final ConnectionError RECEIVE_FAILED
-
WRITE_FAILED
public static final ConnectionError WRITE_FAILED
-
BAD_SERVER
public static final ConnectionError BAD_SERVER
-
BAD_CREDENTIALS
public static final ConnectionError BAD_CREDENTIALS
-
BAD_CLIENT
public static final ConnectionError BAD_CLIENT
-
SERVER_FULL
public static final ConnectionError SERVER_FULL
-
SERVER_MESSAGE
public static final ConnectionError SERVER_MESSAGE
-
RECONNECT_FAILED
public static final ConnectionError RECONNECT_FAILED
-
-
Method Detail
-
values
public static ConnectionError[] 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 (ConnectionError c : ConnectionError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionError 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 nameNullPointerException
- if the argument is null
-
-