whist_core.game.errors ====================== .. py:module:: whist_core.game.errors .. autoapi-nested-parse:: Errors in game phase Exceptions ---------- .. autoapisummary:: whist_core.game.errors.CardNotInHandError whist_core.game.errors.HandDoneError whist_core.game.errors.HandNotDoneError whist_core.game.errors.GameNotDoneError whist_core.game.errors.GameNotStartedError whist_core.game.errors.NotPlayersTurnError whist_core.game.errors.NoTrumpSelectedError whist_core.game.errors.RubberNotDoneError whist_core.game.errors.TrickDoneError 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, turn_player) Bases: :py:obj:`Exception` Raised when players tries to play although is not their turn. .. py:attribute:: message :value: 'Is not Uninferable turn, but Uninferable.' .. 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.