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
« 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
5"""Exception classes raised by various operations within pylint."""
8class InvalidMessageError(Exception):
9 """Raised when a message creation, registration or addition is rejected."""
12class UnknownMessageError(Exception):
13 """Raised when an unregistered message id is encountered."""
16class EmptyReportError(Exception):
17 """Raised when a report is empty and so should not be displayed."""
20class InvalidReporterError(Exception):
21 """Raised when selected reporter is invalid (e.g. not found)."""
24class InvalidArgsError(ValueError):
25 """Raised when passed arguments are invalid, e.g., have the wrong length."""
28class NoLineSuppliedError(Exception):
29 """Raised when trying to disable a message on a next line without supplying a line number."""