feat: add RandomService, seed diagnostics endpoint, and random mode docs (#59)
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
mwisnowski 2026-03-20 21:03:17 -07:00 committed by GitHub
parent 7e5a29dd74
commit 4aa41adb20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 697 additions and 4 deletions

View file

@ -1420,4 +1420,16 @@ class FeatureDisabledError(DeckBuilderError):
def __init__(self, feature: str, details: dict | None = None):
message = f"Feature '{feature}' is currently disabled"
super().__init__(message, code="FEATURE_DISABLED", details=details or {"feature": feature})
super().__init__(message, code="FEATURE_DISABLED", details=details or {"feature": feature})
# Random Mode Exceptions
class InvalidSeedError(DeckBuilderError):
"""Raised when a seed value fails validation.
Used by RandomService when the provided seed is the wrong type,
out of range, or otherwise cannot be processed.
"""
def __init__(self, message: str, details: dict | None = None):
super().__init__(message, code="INVALID_SEED", details=details)