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