Completed
Push — master ( 10fc77...f891f8 )
by Makoto
55s
created

tumdlr.TumblrDownloadError.__init__()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
1
class TumdlrException(Exception):
2
    pass
3
4
5
###############################
6
# Begin file container errors #
7
###############################
8
class TumblrFileError(TumdlrException):
9
    pass
10
11
12
class TumblrDownloadError(TumblrFileError):
13
    def __init__(self, *args, **kwargs):
14
        self.download_url   = kwargs.get('download_url')
15
        self.error_message  = kwargs.get('error_message')
16
        super().__init__('An error occurred while downloading a file entry from a post')
17