~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2006-03-01 08:40:35 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060301084035-ce00abd11fe4da31
Change weave store to be a versioned store, using WeaveFiles which maintain integrity without needing explicit 'put' operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
 
458
458
class WeaveError(BzrNewError):
459
459
    """Error in processing weave: %(message)s"""
 
460
 
460
461
    def __init__(self, message=None):
461
462
        BzrNewError.__init__(self)
462
463
        self.message = message
465
466
class WeaveRevisionAlreadyPresent(WeaveError):
466
467
    """Revision {%(revision_id)s} already present in %(weave)s"""
467
468
    def __init__(self, revision_id, weave):
 
469
 
468
470
        WeaveError.__init__(self)
469
471
        self.revision_id = revision_id
470
472
        self.weave = weave
472
474
 
473
475
class WeaveRevisionNotPresent(WeaveError):
474
476
    """Revision {%(revision_id)s} not present in %(weave)s"""
 
477
 
475
478
    def __init__(self, revision_id, weave):
476
479
        WeaveError.__init__(self)
477
480
        self.revision_id = revision_id
480
483
 
481
484
class WeaveFormatError(WeaveError):
482
485
    """Weave invariant violated: %(what)s"""
 
486
 
483
487
    def __init__(self, what):
484
488
        WeaveError.__init__(self)
485
489
        self.what = what