Completed
Push — master ( 5f7358...8f706c )
by Дроботун
01:08
created

vtapi3.vtapi3error.VirusTotalAPIError.__init__()   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
"""The module describes the VirusTotalAPIError class
2
3
   Author: Evgeny Drobotun (c) 2019
4
   License: MIT (https://github.com/drobotun/virustotalapi3/blob/master/LICENSE)
5
6
   More information: https://virustotalapi3.readthedocs.io/en/latest/error_class.html
7
"""
8
9
class VirusTotalAPIError(Exception):
10
    """A class that implements exceptions that may occur when module class methods are used.
11
    """
12
13
    def __init__(self, message, err_code):
14
        """Inits VirusTotalAPIError.
15
        """
16
        super().__init__(message)
17
        self.err_code = err_code
18