comparison mercurial/error.py @ 45678:bd2df58366b1

errors: name arguments to CommandError constructor Because readability counts. Differential Revision: https://phab.mercurial-scm.org/D9164
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 06 Oct 2020 20:37:35 -0700
parents bdd2cdf9e248
children 65e2b64670b5
comparison
equal deleted inserted replaced
45677:bdd2cdf9e248 45678:bd2df58366b1
97 pass 97 pass
98 98
99 99
100 class CommandError(Exception): 100 class CommandError(Exception):
101 """Exception raised on errors in parsing the command line.""" 101 """Exception raised on errors in parsing the command line."""
102
103 def __init__(self, command, message):
104 self.command = command
105 self.message = message
106 super(CommandError, self).__init__()
102 107
103 __bytes__ = _tobytes 108 __bytes__ = _tobytes
104 109
105 110
106 class UnknownCommand(Exception): 111 class UnknownCommand(Exception):