Class NotEnoughMovementsException

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

public class NotEnoughMovementsException extends Exception
This exception is thrown by GameManager.handleMotherNatureMovement(String) to indicate that the movement cannot be completed since the player does not have enough Mother Nature movements during this turn.
See Also:
  • Constructor Details

    • NotEnoughMovementsException

      public NotEnoughMovementsException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method