Class PlayerHandException

All Implemented Interfaces:
Serializable

public class PlayerHandException extends ModelException
This exception is thrown when there is attempt to add a card to the hand of a player who has already three cards (i.e. his hand is already full).
See Also:
  • Constructor Details

    • PlayerHandException

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