* @throws GameException
*/
private void exceptionTriggered(int errorType) throws GameException {
switch (errorType) {
case Message.SYSKO:
throw new GameException(GameException.typeErr.SYSKO);
case Message.PLAYER_EXISTS:
throw new GameException(GameException.typeErr.PLAYER_EXISTS);
case Message.PLAYER_NOT_EXISTS:
throw new GameException(GameException.typeErr.PLAYER_NOT_EXISTS);
case Message.LOGIN_ERROR:
throw new GameException(GameException.typeErr.LOGIN_ERROR);
case Message.LOGOUT_ERROR:
throw new GameException(GameException.typeErr.LOGOUT_ERROR);
case Message.PLAYER_NOT_LOGGED:
throw new GameException(GameException.typeErr.PLAYER_NOT_LOGGED);
case Message.NEW_GAME_ANONYM_ERROR:
throw new GameException(GameException.typeErr.NEW_GAME_ANONYM_ERROR);
default:
throw new GameException(GameException.typeErr.CONN_KO);
}
}