Parlay / parlay_env /exceptions.py
sh4shv4t's picture
feat: project setup
698f4d8
class ParlayError(Exception):
"""Base exception for all Parlay errors."""
class InvalidActionError(ParlayError):
"""Raised when an invalid action is submitted to the environment."""
class SessionNotFoundError(ParlayError):
"""Raised when a session ID does not exist."""
class InsufficientCredibilityError(ParlayError):
"""Raised when a player tries to use a card they cannot afford."""
class InvalidScenarioError(ParlayError):
"""Raised when an unknown scenario ID is requested."""
class InvalidPersonaError(ParlayError):
"""Raised when an unknown persona is requested."""
class EpisodeAlreadyDoneError(ParlayError):
"""Raised when an action is submitted to a completed episode."""