vtapi3.vtapi3error   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A VirusTotalAPIError.__init__() 0 5 1
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