Package com.smartfoxserver.v2.exceptions
Enum SFSErrorCode
- java.lang.Object
-
- java.lang.Enum<SFSErrorCode>
-
- com.smartfoxserver.v2.exceptions.SFSErrorCode
-
- All Implemented Interfaces:
IErrorCode
,java.io.Serializable
,java.lang.Comparable<SFSErrorCode>
public enum SFSErrorCode extends java.lang.Enum<SFSErrorCode> implements IErrorCode
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getId()
static SFSErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SFSErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HANDSHAKE_API_OBSOLETE
public static final SFSErrorCode HANDSHAKE_API_OBSOLETE
-
LOGIN_BAD_ZONENAME
public static final SFSErrorCode LOGIN_BAD_ZONENAME
-
LOGIN_BAD_USERNAME
public static final SFSErrorCode LOGIN_BAD_USERNAME
-
LOGIN_BAD_PASSWORD
public static final SFSErrorCode LOGIN_BAD_PASSWORD
-
LOGIN_BANNED_USER
public static final SFSErrorCode LOGIN_BANNED_USER
-
LOGIN_ZONE_FULL
public static final SFSErrorCode LOGIN_ZONE_FULL
-
LOGIN_ALREADY_LOGGED
public static final SFSErrorCode LOGIN_ALREADY_LOGGED
-
LOGIN_SERVER_FULL
public static final SFSErrorCode LOGIN_SERVER_FULL
-
LOGIN_INACTIVE_ZONE
public static final SFSErrorCode LOGIN_INACTIVE_ZONE
-
LOGIN_NAME_CONTAINS_BAD_WORDS
public static final SFSErrorCode LOGIN_NAME_CONTAINS_BAD_WORDS
-
LOGIN_GUEST_NOT_ALLOWED
public static final SFSErrorCode LOGIN_GUEST_NOT_ALLOWED
-
LOGIN_BANNED_IP
public static final SFSErrorCode LOGIN_BANNED_IP
-
ROOM_DUPLICATE_NAME
public static final SFSErrorCode ROOM_DUPLICATE_NAME
-
CREATE_ROOM_BAD_GROUP
public static final SFSErrorCode CREATE_ROOM_BAD_GROUP
-
ROOM_NAME_BAD_SIZE
public static final SFSErrorCode ROOM_NAME_BAD_SIZE
-
ROOM_NAME_CONTAINS_BADWORDS
public static final SFSErrorCode ROOM_NAME_CONTAINS_BADWORDS
-
CREATE_ROOM_ZONE_FULL
public static final SFSErrorCode CREATE_ROOM_ZONE_FULL
-
CREATE_ROOM_EXCEED_USER_LIMIT
public static final SFSErrorCode CREATE_ROOM_EXCEED_USER_LIMIT
-
CREATE_ROOM_WRONG_PARAMETER
public static final SFSErrorCode CREATE_ROOM_WRONG_PARAMETER
-
JOIN_ALREADY_JOINED
public static final SFSErrorCode JOIN_ALREADY_JOINED
-
JOIN_ROOM_FULL
public static final SFSErrorCode JOIN_ROOM_FULL
-
JOIN_BAD_PASSWORD
public static final SFSErrorCode JOIN_BAD_PASSWORD
-
JOIN_BAD_ROOM
public static final SFSErrorCode JOIN_BAD_ROOM
-
JOIN_ROOM_LOCKED
public static final SFSErrorCode JOIN_ROOM_LOCKED
-
SUBSCRIBE_GROUP_ALREADY_SUBSCRIBED
public static final SFSErrorCode SUBSCRIBE_GROUP_ALREADY_SUBSCRIBED
-
SUBSCRIBE_GROUP_NOT_FOUND
public static final SFSErrorCode SUBSCRIBE_GROUP_NOT_FOUND
-
UNSUBSCRIBE_GROUP_NOT_SUBSCRIBED
public static final SFSErrorCode UNSUBSCRIBE_GROUP_NOT_SUBSCRIBED
-
UNSUBSCRIBE_GROUP_NOT_FOUND
public static final SFSErrorCode UNSUBSCRIBE_GROUP_NOT_FOUND
-
GENERIC_ERROR
public static final SFSErrorCode GENERIC_ERROR
-
ROOM_NAME_CHANGE_PERMISSION_ERR
public static final SFSErrorCode ROOM_NAME_CHANGE_PERMISSION_ERR
-
ROOM_PASS_CHANGE_PERMISSION_ERR
public static final SFSErrorCode ROOM_PASS_CHANGE_PERMISSION_ERR
-
ROOM_CAPACITY_CHANGE_PERMISSION_ERR
public static final SFSErrorCode ROOM_CAPACITY_CHANGE_PERMISSION_ERR
-
SWITCH_NO_PLAYER_SLOTS_AVAILABLE
public static final SFSErrorCode SWITCH_NO_PLAYER_SLOTS_AVAILABLE
-
SWITCH_NO_SPECTATOR_SLOTS_AVAILABLE
public static final SFSErrorCode SWITCH_NO_SPECTATOR_SLOTS_AVAILABLE
-
SWITCH_NOT_A_GAME_ROOM
public static final SFSErrorCode SWITCH_NOT_A_GAME_ROOM
-
SWITCH_NOT_JOINED_IN_ROOM
public static final SFSErrorCode SWITCH_NOT_JOINED_IN_ROOM
-
BUDDY_LIST_LOAD_FAILURE
public static final SFSErrorCode BUDDY_LIST_LOAD_FAILURE
-
BUDDY_LIST_FULL
public static final SFSErrorCode BUDDY_LIST_FULL
-
BUDDY_BLOCK_FAILURE
public static final SFSErrorCode BUDDY_BLOCK_FAILURE
-
BUDDY_TOO_MANY_VARIABLES
public static final SFSErrorCode BUDDY_TOO_MANY_VARIABLES
-
JOIN_GAME_ACCESS_DENIED
public static final SFSErrorCode JOIN_GAME_ACCESS_DENIED
-
JOIN_GAME_NOT_FOUND
public static final SFSErrorCode JOIN_GAME_NOT_FOUND
-
INVITATION_NOT_VALID
public static final SFSErrorCode INVITATION_NOT_VALID
-
-
Method Detail
-
values
public static SFSErrorCode[] 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 (SFSErrorCode c : SFSErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SFSErrorCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public short getId()
- Specified by:
getId
in interfaceIErrorCode
-
-