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
|