src.modules.backend.exceptions
Custom exception classes for the Wordle Solver application. This module defines specialized exceptions for different error conditions in the game.
Classes
Exceptions
|
Raised when an operation is attempted in an invalid game state. |
|
Raised when input is not the correct length. |
|
Raised when an invalid color character is used. |
|
Raised when a guess is invalid. |
|
Raised when a result pattern is invalid. |
|
Raised when a word is not in the word list. |
|
Base class for all Wordle-related exceptions. |
- exception src.modules.backend.exceptions.WordleError(message='')[source]
Base class for all Wordle-related exceptions.
- exception src.modules.backend.exceptions.GameStateError(message='')[source]
Raised when an operation is attempted in an invalid game state.
- exception src.modules.backend.exceptions.InvalidGuessError(guess, reason)[source]
Raised when a guess is invalid.
- exception src.modules.backend.exceptions.InvalidWordError(word)[source]
Raised when a word is not in the word list.
- exception src.modules.backend.exceptions.InvalidResultError(result, reason)[source]
Raised when a result pattern is invalid.