Class InvalidPlayersNumberException

java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.am13.model.exceptions.InvalidPlayersNumberException
All Implemented Interfaces:
Serializable

public class InvalidPlayersNumberException extends Exception implements Serializable
This exception is thrown when the player number is not valid (ie <2 or >4), or there are different players who have the same token
See Also:
  • Constructor Details

    • InvalidPlayersNumberException

      public InvalidPlayersNumberException()
    • InvalidPlayersNumberException

      public InvalidPlayersNumberException(String message)
      Constructor of the exception.
      Parameters:
      message - the message to be shown when the exception will be handled.