whist_core.game.errors
Errors in game phase
Exceptions
Raised when a player tries to play a card, that is not in their hand. |
|
Raised when the next trick is requested, but current Hand is already done.. |
|
Raised when the next hand is requested, but current is not done yet. |
|
Raised if next game is requested, but current is not done yet. |
|
Raised if a game has not be started. |
|
Raised when players tries to play although is not their turn. |
|
Raised when no trump is selected for hand. |
|
Raised if the current rubber is not done, but action requested requires it to be done. |
|
Raised when the trick is already done. |
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, turn_player)
Bases:
ExceptionRaised when players tries to play although is not their turn.
- Parameters:
player (whist_core.user.player.Player)
turn_player (whist_core.user.player.Player)
- message = 'Is not Uninferable turn, but Uninferable.'
- 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.