Module it.polimi.ingsw.am13
Class InvalidPlayCardException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.am13.model.exceptions.ModelException
it.polimi.ingsw.am13.model.exceptions.InvalidPlayCardException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructor of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPlayCardException
public InvalidPlayCardException() -
InvalidPlayCardException
Constructor of the exception.- Parameters:
msg
- the message to be shown when the exception will be handled.
-