third_party.pylibs.pylint.src/pylint/config/exceptions.py
Daniël van Noord 0bc45e9037
Create an Argument class and allow convertion of optdict into them (#5584)
* Use config initialization of ``_ArgumentsManager``
* Allow ``BaseChecker`` to register on a ``_ArgumentsManager``
* Use the ``argparse`` config handler in ``logging.py`` and add tests
2022-03-29 14:44:27 +02:00

14 lines
516 B
Python

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
class UnrecognizedArgumentAction(Exception):
"""Raised if an ArgumentManager instance tries to add an argument for which the action
is not recognized.
"""
class MissingArgumentManager(Exception):
"""Raised if an ArgumentManager instance to register options to is missing."""