Module it.polimi.ingsw.am13
Package it.polimi.ingsw.am13.model.exceptions
package it.polimi.ingsw.am13.model.exceptions
-
Exception ClassesClassDescriptionThis exception is thrown when there is attempt to reconnect a player which is already connected, or disconnect a player which has already been disconnected.Exception thrown if an action is done in the wrong game phase.Exception thrown when CardFactory attempts to create an invalid card.Thrown after an attempt to set a variable to a value that does not belong to the set of allowed choicesRepresents invalid game coordinates, that is coordinates whose sum is not a multiple of 2, or more generically game coordinates used improperly during the game itself.Exception thrown when the player tries to draw a card and the deck is emptyException related to wrong playing of a card by a player.This exception was the player passed to a method is not valid, either because he doesn't belong to the match or because he isn't allowed to call that method at that moment (i.e.This exception is thrown when the player number is not valid (ie <2 or >4), or there are different players who have the same tokenMain exception class for the Model packageThis exception is thrown when there is attempt to add a card to the hand of a player who has already three cards (i.e.Exception thrown when the player tries to place a card on the field but has not met its requirementsException thrown when a setter of a variable that should only be set one time outside a constructor is called more than once