Skip to content

Bulk asynchronous downloader for multiple file hosts

start adding custom errors back in

Jules-WinnfieldX5a523eb5af5f
diff --git a/cyberdrop_dl/clients/errors.py b/cyberdrop_dl/clients/errors.py
new file mode 100644
index 000000000..0111b8fa2
--- /dev/null
+++ b/cyberdrop_dl/clients/errors.py
@@ -0,0 +1,12 @@
+
+class InvalidContentTypeFailure(Exception):
+ def __init__(self, *, message: str = "Failed login."):
+ self.message = message
+ super().__init__(self.message)
+
+
+class NoExtensionFailure(Exception):
+ """This error will be thrown when no extension is given for a file"""
+ def __init__(self, *, message: str = "Extension missing for file"):
+ self.message = message
+ super().__init__(self.message)