Class GameStatusException

All Implemented Interfaces:
Serializable

public class GameStatusException extends ModelException
Exception thrown if an action is done in the wrong game phase. See GameStatus class for more details.
See Also:
  • Constructor Details

    • GameStatusException

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

      public GameStatusException(GameStatus wrongStatus, GameStatus rightStatus)
      Constructor of the exception.
      Parameters:
      wrongStatus - the current game status in which the action cannot be done.
      rightStatus - the status in which the action can be done.