mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-21 09:07:46 +01:00
7389f85ef2
- Move fancy naming to Hub - Adopt translations - Fix long authors list in bot - Support CJK in scitech - Fixed pylon bug with decoding improper unicode ch... GitOrigin-RevId: 74f73c44f749a71cb65dd5ddd3416f32a83d329f
40 lines
799 B
Python
40 lines
799 B
Python
import logging
|
|
|
|
from izihawa_utils.exceptions import BaseError
|
|
|
|
|
|
class DownloadError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'download_error'
|
|
|
|
|
|
class IncorrectMD5Error(DownloadError):
|
|
code = 'incorrect_md5_error'
|
|
|
|
|
|
class UnresolvableSourceError(DownloadError):
|
|
level = logging.WARNING
|
|
code = 'unresolvable_source_error'
|
|
|
|
|
|
class UnavailableSourcesError(DownloadError):
|
|
code = 'no_available_sources_error'
|
|
|
|
|
|
class NotFoundError(DownloadError):
|
|
level = logging.WARNING
|
|
code = 'not_found_error'
|
|
|
|
|
|
class RegexNotFoundError(DownloadError):
|
|
level = logging.WARNING
|
|
code = 'regex_not_found_error'
|
|
|
|
|
|
class BadResponseError(DownloadError):
|
|
code = 'bad_response_error'
|
|
|
|
|
|
class InvalidDocumentForDownload(DownloadError):
|
|
code = 'invalid_document_for_download'
|