Package io.sockit.gameclient
Class ErrorCodes
java.lang.Object
io.sockit.gameclient.ErrorCodes
public class ErrorCodes extends Object
This class defines the list of Error codes sent by the server
-
Field Summary
Fields Modifier and Type Field Description static int
duplicateEmailId
ErrorCode sent by the server when Client attempts to register a User with an emailId which is already registered on the serverstatic int
duplicateOtherId
ErrorCode sent by the server when Client attempts to register a User with an otherId which is already registered on the serverstatic int
emailIdAndPasswordDoesNotMatch
ErrorCode sent by the server when Client attempts to login with an emailId and password that does not matchstatic int
emptyEmailId
ErrorCode sent by the server when the Client invokes registerUserWithEmailId and the emailId is null or emptystatic int
emptyOtherId
ErrorCode sent by the server when the Client invokes registerUserWithOtherId and the otherId is null or emptystatic int
inElligibleToTakeSeat
ErrorCode sent by the server when Client attempts to take seat and is not eligible to take seatstatic int
invalidEmailId
ErrorCode sent by the server when Client attempts to register a User with an invalid emailId Stringstatic int
invalidGameName
ErrorCode sent by the server when Client attempts to enter a game which does not exist on the serverstatic int
invalidLocation
Error code sent by the server when Client attempts to getRooms from a location which does not exist on the serverstatic int
invalidLoginData
ErrorCode sent by the server when the data sent by the Client with the login message is not valid.static int
invalidLoginType
ErrorCode sent by the server when the loginType is not supported by the Serverstatic int
invalidRegistrationType
ErrorCode sent by the server when the registrationType is not supported by the Serverstatic int
invalidSeatNo
ErrorCode sent by the server when Client attempts to sit a a seat which does not existstatic int
isStillInRoom
ErrorCode sent by the server when Client attempts to enter a game when a room is already joinedstatic int
noGameEntered
ErrorCode sent by the server when Client attempts to get locations or room list or join room before entering a gamestatic int
noRoomJoined
ErrorCode sent by the server when Client has not joined a room and attempts to leaveSeat or playAction or refresh room datastatic int
otherIdAndPasswordDoesNotMatch
ErrorCode sent by the server when Client attempts to login with an otherId and password that does not matchstatic int
roomDestroyed
ErrorCode sent by the server when Client attempts to join a room which is destroyedstatic int
roomIdDoesNotExist
ErrorCode sent by the server when Client attempts to join or take seat in a room which does not exist on the serverstatic int
seatNotFree
ErrorCode sent by the server when Client attempts to sit on a seat which is not freestatic int
tooManySessions
ErrorCode sent by the server when the User has exceeded the maximum number of live sessions allowed per user.static int
tooManyUsersLoggedIn
ErrorCode sent by the server when Client tries to login on a server which has exceeded the maximum number simultaneous Logins allowed -
Constructor Summary
Constructors Constructor Description ErrorCodes()
-
Method Summary
-
Field Details
-
duplicateEmailId
public static final int duplicateEmailIdErrorCode sent by the server when Client attempts to register a User with an emailId which is already registered on the server- See Also:
- Constant Field Values
-
invalidEmailId
public static final int invalidEmailIdErrorCode sent by the server when Client attempts to register a User with an invalid emailId String- See Also:
- Constant Field Values
-
emailIdAndPasswordDoesNotMatch
public static final int emailIdAndPasswordDoesNotMatchErrorCode sent by the server when Client attempts to login with an emailId and password that does not match- See Also:
- Constant Field Values
-
invalidLoginData
public static final int invalidLoginDataErrorCode sent by the server when the data sent by the Client with the login message is not valid. For e.g. emailId or password is null- See Also:
- Constant Field Values
-
invalidGameName
public static final int invalidGameNameErrorCode sent by the server when Client attempts to enter a game which does not exist on the server- See Also:
- Constant Field Values
-
invalidLocation
public static final int invalidLocationError code sent by the server when Client attempts to getRooms from a location which does not exist on the server- See Also:
- Constant Field Values
-
seatNotFree
public static final int seatNotFreeErrorCode sent by the server when Client attempts to sit on a seat which is not free- See Also:
- Constant Field Values
-
noRoomJoined
public static final int noRoomJoinedErrorCode sent by the server when Client has not joined a room and attempts to leaveSeat or playAction or refresh room data- See Also:
- Constant Field Values
-
roomIdDoesNotExist
public static final int roomIdDoesNotExistErrorCode sent by the server when Client attempts to join or take seat in a room which does not exist on the server- See Also:
- Constant Field Values
-
roomDestroyed
public static final int roomDestroyedErrorCode sent by the server when Client attempts to join a room which is destroyed- See Also:
- Constant Field Values
-
invalidSeatNo
public static final int invalidSeatNoErrorCode sent by the server when Client attempts to sit a a seat which does not exist- See Also:
- Constant Field Values
-
inElligibleToTakeSeat
public static final int inElligibleToTakeSeatErrorCode sent by the server when Client attempts to take seat and is not eligible to take seat- See Also:
- Constant Field Values
-
noGameEntered
public static final int noGameEnteredErrorCode sent by the server when Client attempts to get locations or room list or join room before entering a game- See Also:
- Constant Field Values
-
tooManySessions
public static final int tooManySessionsErrorCode sent by the server when the User has exceeded the maximum number of live sessions allowed per user.- See Also:
- Constant Field Values
-
tooManyUsersLoggedIn
public static final int tooManyUsersLoggedInErrorCode sent by the server when Client tries to login on a server which has exceeded the maximum number simultaneous Logins allowed- See Also:
- Constant Field Values
-
isStillInRoom
public static final int isStillInRoomErrorCode sent by the server when Client attempts to enter a game when a room is already joined- See Also:
- Constant Field Values
-
invalidLoginType
public static final int invalidLoginTypeErrorCode sent by the server when the loginType is not supported by the Server- See Also:
- Constant Field Values
-
invalidRegistrationType
public static final int invalidRegistrationTypeErrorCode sent by the server when the registrationType is not supported by the Server- See Also:
- Constant Field Values
-
emptyEmailId
public static final int emptyEmailIdErrorCode sent by the server when the Client invokes registerUserWithEmailId and the emailId is null or empty- See Also:
- Constant Field Values
-
emptyOtherId
public static final int emptyOtherIdErrorCode sent by the server when the Client invokes registerUserWithOtherId and the otherId is null or empty- See Also:
- Constant Field Values
-
duplicateOtherId
public static final int duplicateOtherIdErrorCode sent by the server when Client attempts to register a User with an otherId which is already registered on the server- See Also:
- Constant Field Values
-
otherIdAndPasswordDoesNotMatch
public static final int otherIdAndPasswordDoesNotMatchErrorCode sent by the server when Client attempts to login with an otherId and password that does not match- See Also:
- Constant Field Values
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()
-