summaryrefslogtreecommitdiff
path: root/pylint/exceptions.py
diff options
context:
space:
mode:
authorThomas Hisch <t.hisch@gmail.com>2019-03-02 14:28:31 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-03-02 14:28:31 +0100
commitfb5a2a6dd70f4f8dae84c92c10d88dbe29c20dd6 (patch)
treef39bb615b84f22ba0c94b716c6ad0285d86caca2 /pylint/exceptions.py
parent01b5dd649f2f84f6e3d5907065db0d7676948bd6 (diff)
downloadpylint-git-fb5a2a6dd70f4f8dae84c92c10d88dbe29c20dd6.tar.gz
Add support for reading from stdin (#2746)
pylint gained a new `--from-stdin` flag which activates stdin linting, useful for editors and similar use cases. Closes: #1187
Diffstat (limited to 'pylint/exceptions.py')
-rw-r--r--pylint/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pylint/exceptions.py b/pylint/exceptions.py
index 57353a466..d5dd17fb2 100644
--- a/pylint/exceptions.py
+++ b/pylint/exceptions.py
@@ -23,3 +23,7 @@ class EmptyReportError(Exception):
class InvalidReporterError(Exception):
"""raised when selected reporter is invalid (e.g. not found)"""
+
+
+class InvalidArgsError(ValueError):
+ """raised when passed arguments are invalid, e.g., have the wrong length"""