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

DebugLogMixin()

Exceptions

GameStateError([message])

Raised when an operation is attempted in an invalid game state.

InputLengthError(input_type, actual_length)

Raised when input is not the correct length.

InvalidColorError(char)

Raised when an invalid color character is used.

InvalidGuessError(guess, reason)

Raised when a guess is invalid.

InvalidResultError(result, reason)

Raised when a result pattern is invalid.

InvalidWordError(word)

Raised when a word is not in the word list.

WordleError([message])

Base class for all Wordle-related exceptions.

class src.modules.backend.exceptions.DebugLogMixin[source]
exception src.modules.backend.exceptions.WordleError(message='')[source]

Base class for all Wordle-related exceptions.

__init__(message='')[source]
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.

__init__(guess, reason)[source]
exception src.modules.backend.exceptions.InvalidWordError(word)[source]

Raised when a word is not in the word list.

__init__(word)[source]
exception src.modules.backend.exceptions.InvalidResultError(result, reason)[source]

Raised when a result pattern is invalid.

__init__(result, reason)[source]
exception src.modules.backend.exceptions.InvalidColorError(char)[source]

Raised when an invalid color character is used.

__init__(char)[source]
exception src.modules.backend.exceptions.InputLengthError(input_type, actual_length, expected_length=5)[source]

Raised when input is not the correct length.

__init__(input_type, actual_length, expected_length=5)[source]