9ca31e45e0
- Fix circular dependencies in agent/tools - Migrate from custom JSON to OpenAI tool calls format - Add async streaming (step_stream, complete_stream) - Simplify prompt system and remove token counting - Add 5 new API endpoints (/health, /v1/models, /api/memory/*) - Add 3 new tools (get_torrent_by_index, add_torrent_by_index, set_language) - Fix all 500 tests and add coverage config (80% threshold) - Add comprehensive docs (README, pytest guide) BREAKING: LLM interface changed, memory injection via get_memory()
34 lines
604 B
Python
34 lines
604 B
Python
"""TV Show domain exceptions."""
|
|
|
|
from ..shared.exceptions import DomainException, NotFoundError
|
|
|
|
|
|
class TVShowNotFound(NotFoundError):
|
|
"""Raised when a TV show is not found."""
|
|
|
|
pass
|
|
|
|
|
|
class SeasonNotFound(NotFoundError):
|
|
"""Raised when a season is not found."""
|
|
|
|
pass
|
|
|
|
|
|
class EpisodeNotFound(NotFoundError):
|
|
"""Raised when an episode is not found."""
|
|
|
|
pass
|
|
|
|
|
|
class InvalidEpisode(DomainException):
|
|
"""Raised when episode data is invalid."""
|
|
|
|
pass
|
|
|
|
|
|
class TVShowAlreadyExists(DomainException):
|
|
"""Raised when trying to add a TV show that already exists."""
|
|
|
|
pass
|