mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 11:44:45 +08:00
29 lines
673 B
Python
29 lines
673 B
Python
# -*- 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
|
|
|
|
|
|
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
|