Class InvalidPlayCardException

All Implemented Interfaces:
Serializable

public class InvalidPlayCardException extends ModelException
Exception related to wrong playing of a card by a player. It could be thrown when the player tries to place a card on the field in an invalid spot, or when the player tries to play a card that they don't have
See Also:
  • Constructor Details

    • InvalidPlayCardException

      public InvalidPlayCardException()
    • InvalidPlayCardException

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