Class AddedDuplicatedPlayerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tenio.core.exception.AddedDuplicatedPlayerException
All Implemented Interfaces:
Serializable

public final class AddedDuplicatedPlayerException extends RuntimeException
When a player is added into a room which is already existed.
See Also:
  • Constructor Details

    • AddedDuplicatedPlayerException

      public AddedDuplicatedPlayerException(Player player, Room room)
      Initialization.
      Parameters:
      player - the Player tries to join the room
      room - the target Room
  • Method Details

    • getPlayer

      public Player getPlayer()
      Retrieves the player.
      Returns:
      an instance of Player
    • getRoom

      public Room getRoom()
      Retrieves the room.
      Returns:
      an instance of Room