You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
673 B
30 lines
673 B
7 years ago
|
# -*- 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
|
||
|
|
||
|
|
||
7 years ago
|
class ServiceUnavailable(ProviderError):
|
||
|
"""Exception raised when status is '503 Service Unavailable'."""
|
||
7 years ago
|
pass
|
||
|
|
||
|
|
||
|
class DownloadLimitExceeded(ProviderError):
|
||
|
"""Exception raised by providers when download limit is exceeded."""
|
||
|
pass
|