feat: add RandomService, seed diagnostics endpoint, and random mode docs

This commit is contained in:
matt 2026-03-20 18:35:52 -07:00
parent 7e5a29dd74
commit c4eb3bcd5a
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)