cluedo.info
Class ErrorInfo

java.lang.Object
  |
  +--cluedo.info.CluedoInfo
        |
        +--cluedo.info.ErrorInfo

public class ErrorInfo
extends CluedoInfo

ErrorInfo objects are transmitted by the server or by clients.

See Also:
CluedoPDU, Serialized Form

Field Summary
static int ALREADY_IN_SESSION
           
static int CONNECTION_REFUSED
           
 java.lang.String errMsg
          An explanation of the error.
 int errNo
          The number of the error
static int INVALID_CARD
           
static int INVALID_MOVE
           
static int INVALID_PLAYER_ID
           
static int INVALID_SENDER_ID
           
static int INVALID_SESSION_ID
           
static int NOT_ACTIVE_PLAYER
           
static int NOT_DIRECTOR
           
static int OK
           
static int PLAYERNAME_EXISTS
           
static int SESSION_ALREADY_CLOSED
           
static int SESSIONNAME_EXISTS
           
static int UNSPECIFIED
           
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
ErrorInfo(int errNo, java.lang.String errMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK

CONNECTION_REFUSED

public static final int CONNECTION_REFUSED

PLAYERNAME_EXISTS

public static final int PLAYERNAME_EXISTS

SESSIONNAME_EXISTS

public static final int SESSIONNAME_EXISTS

ALREADY_IN_SESSION

public static final int ALREADY_IN_SESSION

INVALID_SENDER_ID

public static final int INVALID_SENDER_ID

INVALID_SESSION_ID

public static final int INVALID_SESSION_ID

NOT_DIRECTOR

public static final int NOT_DIRECTOR

SESSION_ALREADY_CLOSED

public static final int SESSION_ALREADY_CLOSED

INVALID_PLAYER_ID

public static final int INVALID_PLAYER_ID

NOT_ACTIVE_PLAYER

public static final int NOT_ACTIVE_PLAYER

INVALID_MOVE

public static final int INVALID_MOVE

INVALID_CARD

public static final int INVALID_CARD

UNSPECIFIED

public static final int UNSPECIFIED

errNo

public int errNo
The number of the error

errMsg

public java.lang.String errMsg
An explanation of the error.
Constructor Detail

ErrorInfo

public ErrorInfo(int errNo,
                 java.lang.String errMsg)