minimal adjustments
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-python / pythonFiles / testing_tools / adapter / errors.py
1 # Copyright (c) Microsoft Corporation. All rights reserved.
2 # Licensed under the MIT License.
3
4
5 class UnsupportedToolError(ValueError):
6     def __init__(self, tool):
7         msg = 'unsupported tool {!r}'.format(tool)
8         super(UnsupportedToolError, self).__init__(msg)
9         self.tool = tool
10
11
12 class UnsupportedCommandError(ValueError):
13     def __init__(self, cmd):
14         msg = 'unsupported cmd {!r}'.format(cmd)
15         super(UnsupportedCommandError, self).__init__(msg)
16         self.cmd = cmd