~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2006-09-28 01:53:23 UTC
  • mfrom: (2049 +trunk)
  • mto: (1731.2.8 nested-trees)
  • mto: This revision was merged to the branch mainline in revision 2078.
  • Revision ID: aaron.bentley@utoronto.ca-20060928015323-4e7367532c857e87
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
        self.bzrdir = bzrdir_format
399
399
 
400
400
 
 
401
class IncompatibleRevision(BzrNewError):
 
402
    """Revision is not compatible with %(repo_format)s"""
 
403
 
 
404
    def __init__(self, repo_format):
 
405
        BzrNewError.__init__(self)
 
406
        self.repo_format = repo_format
 
407
 
 
408
 
401
409
class NotVersionedError(BzrNewError):
402
410
    """%(path)s is not versioned"""
403
411
    def __init__(self, path):
823
831
 
824
832
# A set of semi-meaningful errors which can be thrown
825
833
class TransportNotPossible(TransportError):
826
 
    """Transport operation not possible: %(msg)s %(orig_error)%"""
 
834
    """Transport operation not possible: %(msg)s %(orig_error)s"""
827
835
 
828
836
 
829
837
class ConnectionError(TransportError):
1202
1210
        BzrNewError.__init__(self)
1203
1211
 
1204
1212
 
 
1213
class IncompatibleFormat(BzrNewError):
 
1214
    """Bundle format %(bundle_format)s is incompatible with %(other)s"""
 
1215
 
 
1216
    def __init__(self, bundle_format, other):
 
1217
        BzrNewError.__init__(self)
 
1218
        self.bundle_format = bundle_format
 
1219
        self.other = other
 
1220
 
 
1221
 
1205
1222
class BadInventoryFormat(BzrNewError):
1206
1223
    """Root class for inventory serialization errors"""
1207
1224