Skip to content

Exceptions

patiencepilot.exceptions

Errors raised by patiencepilot.

PatiencePilotError

Bases: Exception

Base class for patiencepilot errors.

Source code in src/patiencepilot/exceptions.py
4
5
class PatiencePilotError(Exception):
    """Base class for patiencepilot errors."""

InvalidStateError

Bases: PatiencePilotError

Raised when a game state is malformed or inconsistent.

Source code in src/patiencepilot/exceptions.py
8
9
class InvalidStateError(PatiencePilotError):
    """Raised when a game state is malformed or inconsistent."""

InvalidMoveError

Bases: PatiencePilotError

Raised when a move is not legal from the current state.

Source code in src/patiencepilot/exceptions.py
12
13
class InvalidMoveError(PatiencePilotError):
    """Raised when a move is not legal from the current state."""

UnsupportedVariantError

Bases: PatiencePilotError

Raised when a Solitaire variant is not supported.

Source code in src/patiencepilot/exceptions.py
16
17
class UnsupportedVariantError(PatiencePilotError):
    """Raised when a Solitaire variant is not supported."""

UnsupportedSolverError

Bases: PatiencePilotError

Raised when a solver is not supported.

Source code in src/patiencepilot/exceptions.py
20
21
class UnsupportedSolverError(PatiencePilotError):
    """Raised when a solver is not supported."""

SolverLimitError

Bases: PatiencePilotError

Raised when a solver cannot continue within configured limits.

Source code in src/patiencepilot/exceptions.py
24
25
class SolverLimitError(PatiencePilotError):
    """Raised when a solver cannot continue within configured limits."""

NotationError

Bases: PatiencePilotError

Raised when state notation cannot be parsed or serialized.

Source code in src/patiencepilot/exceptions.py
28
29
class NotationError(PatiencePilotError):
    """Raised when state notation cannot be parsed or serialized."""