2018-03-23 23:59:59 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
class Error(Exception):
|
|
|
|
"""Base class for exceptions in subliminal."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ProviderError(Error):
|
|
|
|
"""Exception raised by providers."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ConfigurationError(ProviderError):
|
|
|
|
"""Exception raised by providers when badly configured."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class AuthenticationError(ProviderError):
|
|
|
|
"""Exception raised by providers when authentication failed."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-09-13 19:12:26 +00:00
|
|
|
class TooManyRequests(ProviderError):
|
|
|
|
"""Exception raised by providers when too many requests are made."""
|
2018-03-23 23:59:59 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class DownloadLimitExceeded(ProviderError):
|
|
|
|
"""Exception raised by providers when download limit is exceeded."""
|
|
|
|
pass
|