whist_core.game.errors¶
Errors in game phase
Module Contents¶
- exception whist_core.game.errors.CardNotInHandError¶
Bases:
ExceptionRaised when a player tries to play a card, that is not in their hand.
- exception whist_core.game.errors.HandDoneError¶
Bases:
ExceptionRaised when the next trick is requested, but current Hand is already done..
- exception whist_core.game.errors.HandNotDoneError¶
Bases:
ExceptionRaised when the next hand is requested, but current is not done yet.
- exception whist_core.game.errors.GameNotDoneError¶
Bases:
ExceptionRaised if next game is requested, but current is not done yet.
- exception whist_core.game.errors.GameNotStartedError¶
Bases:
ExceptionRaised if a game has not be started.
- exception whist_core.game.errors.NotPlayersTurnError(player: whist_core.user.player.Player, turn_player: whist_core.user.player.Player)¶
Bases:
ExceptionRaised when players tries to play although is not their turn.
- exception whist_core.game.errors.NoTrumpSelectedError¶
Bases:
ExceptionRaised when no trump is selected for hand.
- exception whist_core.game.errors.RubberNotDoneError¶
Bases:
ExceptionRaised if the current rubber is not done, but action requested requires it to be done.
- exception whist_core.game.errors.TrickDoneError¶
Bases:
ExceptionRaised when the trick is already done.