Import BadProxyCommand

This commit is contained in:
Jeff Forcier 2012-11-05 17:29:23 -08:00
parent 27271fa455
commit 5d15467ad4
1 changed files with 15 additions and 0 deletions

View File

@ -113,3 +113,18 @@ class BadHostKeyException (SSHException):
self.key = got_key self.key = got_key
self.expected_key = expected_key self.expected_key = expected_key
class BadProxyCommand (SSHException):
"""
The "ProxyCommand" found in the .ssh/config file returned an error.
@ivar command: The command line that is generating this exception
@type command: str
@ivar error: The error captured from the proxy command output
@type error: str
"""
def __init__(self, command, error):
SSHException.__init__(self,
'"ProxyCommand (%s)" returned non-zero exit status: %s' % (
command, error))
self.error = error