Spaces:
Build error
Build error
File size: 572 Bytes
2e074b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Exceptions raised by the Downloader class
class InvalidUrl(Exception):
def __init__(self) -> None:
super().__init__("The provided string isn't an url!")
class InvalidContentType(Exception):
def __init__(self) -> None:
super().__init__("The provided url doesn't contain any archive!")
class HttpStatusError(Exception):
def __init__(self) -> None:
super().__init__("Received HTTP status code isn't 200")
class FileTooLarge(Exception):
def __init__(self) -> None:
super().__init__("Archive is too large to download!")
|