comparison sat/core/exceptions.py @ 2793:181735d1b062

plugin mr mercurial, tools(common/utils): moved command protocol to a new module
author Goffi <goffi@goffi.org>
date Fri, 25 Jan 2019 09:06:29 +0100
parents e9cd473a2f46
children ab2696e34d29
comparison
equal deleted inserted replaced
2792:441b536e28ed 2793:181735d1b062
124 124
125 125
126 class InvalidCertificate(Exception): 126 class InvalidCertificate(Exception):
127 """A TLS certificate is not valid""" 127 """A TLS certificate is not valid"""
128 pass 128 pass
129
130
131 class CommandException(RuntimeError):
132 """An external command failed
133
134 stdout and stderr will be attached to the Exception
135 """
136
137 def __init__(self, msg, stdout, stderr):
138 super(CommandException, self).__init__(msg)
139 self.stdout = stdout
140 self.stderr = stderr