Mercurial > public > mercurial-scm > hg
comparison mercurial/error.py @ 45680:bb1a988ef4a5
errors: name arguments to UnknownCommand constructor
Differential Revision: https://phab.mercurial-scm.org/D9166
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Oct 2020 21:06:18 -0700 |
parents | 65e2b64670b5 |
children | d2e1dcd4490d |
comparison
equal
deleted
inserted
replaced
45679:65e2b64670b5 | 45680:bb1a988ef4a5 |
---|---|
108 __bytes__ = _tobytes | 108 __bytes__ = _tobytes |
109 | 109 |
110 | 110 |
111 class UnknownCommand(Exception): | 111 class UnknownCommand(Exception): |
112 """Exception raised if command is not in the command table.""" | 112 """Exception raised if command is not in the command table.""" |
113 | |
114 def __init__(self, command, all_commands=None): | |
115 self.command = command | |
116 self.all_commands = all_commands | |
117 super(UnknownCommand, self).__init__() | |
113 | 118 |
114 __bytes__ = _tobytes | 119 __bytes__ = _tobytes |
115 | 120 |
116 | 121 |
117 class AmbiguousCommand(Exception): | 122 class AmbiguousCommand(Exception): |