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 intduplicateEmailIdErrorCode sent by the server when Client attempts to register a User with an emailId which is already registered on the serverstatic intduplicateOtherIdErrorCode sent by the server when Client attempts to register a User with an otherId which is already registered on the serverstatic intemailIdAndPasswordDoesNotMatchErrorCode sent by the server when Client attempts to login with an emailId and password that does not matchstatic intemptyEmailIdErrorCode sent by the server when the Client invokes registerUserWithEmailId and the emailId is null or emptystatic intemptyOtherIdErrorCode sent by the server when the Client invokes registerUserWithOtherId and the otherId is null or emptystatic intinElligibleToTakeSeatErrorCode sent by the server when Client attempts to take seat and is not eligible to take seatstatic intinvalidEmailIdErrorCode sent by the server when Client attempts to register a User with an invalid emailId Stringstatic intinvalidGameNameErrorCode sent by the server when Client attempts to enter a game which does not exist on the serverstatic intinvalidLocationError code sent by the server when Client attempts to getRooms from a location which does not exist on the serverstatic intinvalidLoginDataErrorCode sent by the server when the data sent by the Client with the login message is not valid.static intinvalidLoginTypeErrorCode sent by the server when the loginType is not supported by the Serverstatic intinvalidRegistrationTypeErrorCode sent by the server when the registrationType is not supported by the Serverstatic intinvalidSeatNoErrorCode sent by the server when Client attempts to sit a a seat which does not existstatic intisStillInRoomErrorCode sent by the server when Client attempts to enter a game when a room is already joinedstatic intnoGameEnteredErrorCode sent by the server when Client attempts to get locations or room list or join room before entering a gamestatic intnoRoomJoinedErrorCode sent by the server when Client has not joined a room and attempts to leaveSeat or playAction or refresh room datastatic intotherIdAndPasswordDoesNotMatchErrorCode sent by the server when Client attempts to login with an otherId and password that does not matchstatic introomDestroyedErrorCode sent by the server when Client attempts to join a room which is destroyedstatic introomIdDoesNotExistErrorCode sent by the server when Client attempts to join or take seat in a room which does not exist on the serverstatic intseatNotFreeErrorCode sent by the server when Client attempts to sit on a seat which is not freestatic inttooManySessionsErrorCode sent by the server when the User has exceeded the maximum number of live sessions allowed per user.static inttooManyUsersLoggedInErrorCode 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()
-