~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-10 18:57:20 UTC
  • mfrom: (1910.2.48 format-bumps)
  • Revision ID: pqm@pqm.ubuntu.com-20060910185720-1bcc17b99fe77687
Add new format to support nested trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
990
990
        self.format = format
991
991
 
992
992
 
 
993
class BadConversionTarget(BzrNewError):
 
994
    """Cannot convert to format %(format)s.  %(problem)s"""
 
995
 
 
996
    def __init__(self, problem, format):
 
997
        BzrNewError.__init__(self)
 
998
        self.problem = problem
 
999
        self.format = format
 
1000
 
 
1001
 
993
1002
class NoDiff(BzrNewError):
994
1003
    """Diff is not installed on this machine: %(msg)s"""
995
1004
 
1148
1157
        BzrNewError.__init__(self)
1149
1158
 
1150
1159
 
 
1160
class BadInventoryFormat(BzrNewError):
 
1161
    """Root class for inventory serialization errors"""
 
1162
 
 
1163
 
 
1164
class UnexpectedInventoryFormat(BadInventoryFormat):
 
1165
    """The inventory was not in the expected format:\n %(msg)s"""
 
1166
 
 
1167
    def __init__(self, msg):
 
1168
        BadInventoryFormat.__init__(self, msg=msg)
 
1169
 
 
1170
 
1151
1171
class UnknownSSH(BzrNewError):
1152
1172
    """Unrecognised value for BZR_SSH environment variable: %(vendor)s"""
1153
1173