<filename>src/phylm/errors.py
"""Module to hold custom error definitions."""


class UnrecognizedSourceError(Exception):
    """Raised when an unrecognized source is given."""


class SourceNotLoadedError(Exception):
    """Raised when data from an unloaded source is retreived."""


class NoTMDbApiKeyError(Exception):
    """Raised when requests are made to TMDb but no api_key has be provided."""

<filename>src/phylm/errors.py
"""Module to hold custom error definitions."""


class UnrecognizedSourceError(Exception):
    """Raised when an unrecognized source is given."""


class SourceNotLoadedError(Exception):
    """Raised when data from an unloaded source is retreived."""


class NoTMDbApiKeyError(Exception):
    """Raised when requests are made to TMDb but no api_key has be provided."""

Module to hold custom error definitions. Raised when an unrecognized source is given. Raised when data from an unloaded source is retreived. Raised when requests are made to TMDb but no api_key has be provided.