2020-05-04 12:31:34 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
class TooManyArchivingRequests(Exception):
|
2020-05-05 06:37:27 +02:00
|
|
|
|
2020-05-05 06:35:47 +02:00
|
|
|
"""Error when a single url reqeusted for archiving too many times in a short timespam.
|
2020-05-04 12:31:34 +02:00
|
|
|
Wayback machine doesn't supports archivng any url too many times in a short period of time.
|
|
|
|
"""
|
|
|
|
|
|
|
|
class ArchivingNotAllowed(Exception):
|
2020-05-05 06:37:27 +02:00
|
|
|
|
2020-05-05 06:35:47 +02:00
|
|
|
"""Files like robots.txt are set to deny robot archiving.
|
2020-05-04 12:31:34 +02:00
|
|
|
Wayback machine respects these file, will not archive.
|
|
|
|
"""
|
|
|
|
|
|
|
|
class PageNotSaved(Exception):
|
|
|
|
"""
|
|
|
|
When unable to save a webpage.
|
|
|
|
"""
|
|
|
|
|
|
|
|
class ArchiveNotFound(Exception):
|
|
|
|
"""
|
|
|
|
When a page was never archived but client asks for old archive.
|
|
|
|
"""
|
|
|
|
|
|
|
|
class UrlNotFound(Exception):
|
|
|
|
"""
|
|
|
|
Raised when 404 UrlNotFound.
|
|
|
|
"""
|
|
|
|
|
|
|
|
class BadGateWay(Exception):
|
|
|
|
"""
|
|
|
|
Raised when 502 bad gateway.
|
|
|
|
"""
|
|
|
|
|
2020-05-06 15:52:56 +02:00
|
|
|
class WaybackUnavailable(Exception):
|
|
|
|
"""
|
|
|
|
Raised when 503 API Service Temporarily Unavailable.
|
|
|
|
"""
|
|
|
|
|
2020-05-04 12:31:34 +02:00
|
|
|
class InvalidUrl(Exception):
|
|
|
|
"""
|
|
|
|
Raised when url doesn't follow the standard url format.
|
|
|
|
"""
|