Coverage for C:\Repos\ekr-pylint\pylint\exceptions.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v6.4, created at 2022-05-24 10:21 -0500

1# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html 

2# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE 

3# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt 

4 

5"""Exception classes raised by various operations within pylint.""" 

6 

7 

8class InvalidMessageError(Exception): 

9 """Raised when a message creation, registration or addition is rejected.""" 

10 

11 

12class UnknownMessageError(Exception): 

13 """Raised when an unregistered message id is encountered.""" 

14 

15 

16class EmptyReportError(Exception): 

17 """Raised when a report is empty and so should not be displayed.""" 

18 

19 

20class InvalidReporterError(Exception): 

21 """Raised when selected reporter is invalid (e.g. not found).""" 

22 

23 

24class InvalidArgsError(ValueError): 

25 """Raised when passed arguments are invalid, e.g., have the wrong length.""" 

26 

27 

28class NoLineSuppliedError(Exception): 

29 """Raised when trying to disable a message on a next line without supplying a line number."""