Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 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 |