hyperboria/nexus/pylon/exceptions.py
the-superpirate 7389f85ef2 - Send Pylon to golden
-  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
2021-01-08 23:09:19 +03:00

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'