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 server
    static int duplicateOtherId
    ErrorCode sent by the server when Client attempts to register a User with an otherId which is already registered on the server
    static int emailIdAndPasswordDoesNotMatch
    ErrorCode sent by the server when Client attempts to login with an emailId and password that does not match
    static int emptyEmailId
    ErrorCode sent by the server when the Client invokes registerUserWithEmailId and the emailId is null or empty
    static int emptyOtherId
    ErrorCode sent by the server when the Client invokes registerUserWithOtherId and the otherId is null or empty
    static int inElligibleToTakeSeat
    ErrorCode sent by the server when Client attempts to take seat and is not eligible to take seat
    static int invalidEmailId
    ErrorCode sent by the server when Client attempts to register a User with an invalid emailId String
    static int invalidGameName
    ErrorCode sent by the server when Client attempts to enter a game which does not exist on the server
    static int invalidLocation
    Error code sent by the server when Client attempts to getRooms from a location which does not exist on the server
    static 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 Server
    static int invalidRegistrationType
    ErrorCode sent by the server when the registrationType is not supported by the Server
    static int invalidSeatNo
    ErrorCode sent by the server when Client attempts to sit a a seat which does not exist
    static int isStillInRoom
    ErrorCode sent by the server when Client attempts to enter a game when a room is already joined
    static int noGameEntered
    ErrorCode sent by the server when Client attempts to get locations or room list or join room before entering a game
    static int noRoomJoined
    ErrorCode sent by the server when Client has not joined a room and attempts to leaveSeat or playAction or refresh room data
    static int otherIdAndPasswordDoesNotMatch
    ErrorCode sent by the server when Client attempts to login with an otherId and password that does not match
    static int roomDestroyed
    ErrorCode sent by the server when Client attempts to join a room which is destroyed
    static int roomIdDoesNotExist
    ErrorCode sent by the server when Client attempts to join or take seat in a room which does not exist on the server
    static int seatNotFree
    ErrorCode sent by the server when Client attempts to sit on a seat which is not free
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • duplicateEmailId

      public static final int duplicateEmailId
      ErrorCode 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 invalidEmailId
      ErrorCode 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 emailIdAndPasswordDoesNotMatch
      ErrorCode 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 invalidLoginData
      ErrorCode 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 invalidGameName
      ErrorCode 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 invalidLocation
      Error 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 seatNotFree
      ErrorCode 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 noRoomJoined
      ErrorCode 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 roomIdDoesNotExist
      ErrorCode 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 roomDestroyed
      ErrorCode sent by the server when Client attempts to join a room which is destroyed
      See Also:
      Constant Field Values
    • invalidSeatNo

      public static final int invalidSeatNo
      ErrorCode 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 inElligibleToTakeSeat
      ErrorCode 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 noGameEntered
      ErrorCode 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 tooManySessions
      ErrorCode 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 tooManyUsersLoggedIn
      ErrorCode 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 isStillInRoom
      ErrorCode 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 invalidLoginType
      ErrorCode sent by the server when the loginType is not supported by the Server
      See Also:
      Constant Field Values
    • invalidRegistrationType

      public static final int invalidRegistrationType
      ErrorCode sent by the server when the registrationType is not supported by the Server
      See Also:
      Constant Field Values
    • emptyEmailId

      public static final int emptyEmailId
      ErrorCode 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 emptyOtherId
      ErrorCode 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 duplicateOtherId
      ErrorCode 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 otherIdAndPasswordDoesNotMatch
      ErrorCode 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