1801
1801
class SigningFailed(BzrError):
1803
_fmt = 'Failed to gpg sign data with command "%(command_line)s"'
1803
_fmt = 'Failed to GPG sign data with command "%(command_line)s"'
1805
1805
def __init__(self, command_line):
1806
1806
BzrError.__init__(self, command_line=command_line)
1809
class SignatureVerificationFailed(BzrError):
1811
_fmt = 'Failed to verify GPG signature data with error "%(error)s"'
1813
def __init__(self, error):
1814
BzrError.__init__(self, error=error)
1817
class DependencyNotPresent(BzrError):
1819
_fmt = 'Unable to import library "%(library)s": %(error)s'
1821
def __init__(self, library, error):
1822
BzrError.__init__(self, library=library, error=error)
1825
class GpgmeNotInstalled(DependencyNotPresent):
1827
_fmt = 'python-gpgme is not installed, it is needed to verify signatures'
1829
def __init__(self, error):
1830
DependencyNotPresent.__init__(self, 'gpgme', error)
1809
1833
class WorkingTreeNotRevision(BzrError):
1811
1835
_fmt = ("The working tree for %(basedir)s has changed since"
2064
2088
_fmt = "Parameter %(param)s contains a newline."
2067
class DependencyNotPresent(BzrError):
2069
_fmt = 'Unable to import library "%(library)s": %(error)s'
2071
def __init__(self, library, error):
2072
BzrError.__init__(self, library=library, error=error)
2075
2091
class ParamikoNotPresent(DependencyNotPresent):
2077
2093
_fmt = "Unable to import paramiko (required for sftp support): %(error)s"