Skip to content

Commit

Permalink
update exception hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 5, 2018
1 parent e9ae6fd commit eb3185d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gallery_dl/exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Copyright 2015-2017 Mike Fährmann
# Copyright 2015-2018 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
Expand All @@ -18,7 +18,8 @@
| +-- NotFoundError
| +-- HttpError
+-- DownloadError
+-- DownloadComplete
| +-- DownloadComplete
| +-- DownloadRetry
+-- NoExtractorError
+-- FormatError
+-- FilterError
Expand Down Expand Up @@ -50,11 +51,15 @@ class HttpError(ExtractionError):
"""HTTP request during extraction failed"""


class DownloadRetry(GalleryDLException):
class DownloadError(GalleryDLException):
"""Base class for exceptions during file downloads"""


class DownloadRetry(DownloadError):
"""Download attempt failed and should be retried"""


class DownloadComplete(GalleryDLException):
class DownloadComplete(DownloadError):
"""Output file of attempted download is already complete"""


Expand Down

0 comments on commit eb3185d

Please sign in to comment.