"""Exceptions module."""


class NoResults(Exception):
    """Search didn't return any results."""
    def __init__(self) -> None:
        msg = "Search didn't return any results."
        Exception.__init__(self, msg)


class NoAvailableMirror(Exception):
    """No mirrors are available to process request."""
    def __init__(self) -> None:
        msg = "No mirrors are available to process the request at this time."
        Exception.__init__(self, msg)


class CouldntFindDownloadUrl(Exception):
    """MirrorDownloader couldn't extract the download URL."""
    def __init__(self, url: str) -> None:
        msg = f"Can't find the download URL in '{url}'"
        Exception.__init__(self, msg)

"""Exceptions module."""


class NoResults(Exception):
    """Search didn't return any results."""
    def __init__(self) -> None:
        msg = "Search didn't return any results."
        Exception.__init__(self, msg)


class NoAvailableMirror(Exception):
    """No mirrors are available to process request."""
    def __init__(self) -> None:
        msg = "No mirrors are available to process the request at this time."
        Exception.__init__(self, msg)


class CouldntFindDownloadUrl(Exception):
    """MirrorDownloader couldn't extract the download URL."""
    def __init__(self, url: str) -> None:
        msg = f"Can't find the download URL in '{url}'"
        Exception.__init__(self, msg)

Exceptions module. Search didn't return any results. No mirrors are available to process request. MirrorDownloader couldn't extract the download URL.