plugin mr mercurial, tools(common/utils): moved command protocol to a new module
This commit is contained in:
parent
687ef5b6bd
commit
8a59034935
1 changed files with 181 additions and 62 deletions
|
|
@ -126,3 +126,15 @@ class NotReady(Exception):
|
|||
class InvalidCertificate(Exception):
|
||||
"""A TLS certificate is not valid"""
|
||||
pass
|
||||
|
||||
|
||||
class CommandException(RuntimeError):
|
||||
"""An external command failed
|
||||
|
||||
stdout and stderr will be attached to the Exception
|
||||
"""
|
||||
|
||||
def __init__(self, msg, stdout, stderr):
|
||||
super(CommandException, self).__init__(msg)
|
||||
self.stdout = stdout
|
||||
self.stderr = stderr
|
||||
|
|
|
|||
Loading…
Reference in a new issue