1770
1770
_fmt = "Working tree has conflicts."
1773
class ConfigContentError(BzrError):
1775
_fmt = "Config file %(filename)s is not UTF-8 encoded\n"
1777
def __init__(self, filename):
1778
BzrError.__init__(self)
1779
self.filename = filename
1773
1782
class ParseConfigError(BzrError):
1775
1784
_fmt = "Error(s) parsing config file %(filename)s:\n%(errors)s"
1792
1801
class SigningFailed(BzrError):
1794
_fmt = 'Failed to gpg sign data with command "%(command_line)s"'
1803
_fmt = 'Failed to GPG sign data with command "%(command_line)s"'
1796
1805
def __init__(self, command_line):
1797
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)
1800
1833
class WorkingTreeNotRevision(BzrError):
1802
1835
_fmt = ("The working tree for %(basedir)s has changed since"
2055
2088
_fmt = "Parameter %(param)s contains a newline."
2058
class DependencyNotPresent(BzrError):
2060
_fmt = 'Unable to import library "%(library)s": %(error)s'
2062
def __init__(self, library, error):
2063
BzrError.__init__(self, library=library, error=error)
2066
2091
class ParamikoNotPresent(DependencyNotPresent):
2068
2093
_fmt = "Unable to import paramiko (required for sftp support): %(error)s"