(self, keys, path=None)
| 31 | |
| 32 | class ReservedKeyError(ContextError): |
| 33 | def __init__(self, keys, path=None): |
| 34 | from dvc.utils.humanize import join |
| 35 | |
| 36 | self.keys = keys |
| 37 | self.path = path |
| 38 | |
| 39 | n = "key" + ("s" if len(keys) > 1 else "") |
| 40 | msg = f"attempted to modify reserved {n} {join(keys)}" |
| 41 | if path: |
| 42 | msg += f" in '{path}'" |
| 43 | super().__init__(msg) |
| 44 | |
| 45 | |
| 46 | class MergeError(ContextError): |