aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/subliminal_patch/exceptions.py
blob: 946d3d9b646c1d9fd230a8f7089d3ce3e6829960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# coding=utf-8
from subliminal import ProviderError


class TooManyRequests(ProviderError):
    """Exception raised by providers when too many requests are made."""
    pass


class APIThrottled(ProviderError):
    pass


class ServiceUnavailable(ProviderError):
    """Exception raised when status is '503 Service Unavailable'."""
    pass


class DownloadLimitExceeded(ProviderError):
    """Exception raised by providers when download limit is exceeded."""
    pass