/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-01-17 16:13:50 UTC
  • mfrom: (2236 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2240.
  • Revision ID: abentley@panoramicfeedback.com-20070117161350-z0poe4762mzt2mlb
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
 
550
550
    _fmt = "Lock error: %(message)s"
551
551
 
 
552
    internal_error = True
 
553
 
552
554
    # All exceptions from the lock/unlock functions should be from
553
555
    # this exception class.  They will be translated as necessary. The
554
556
    # original exception is available as e.original_error
591
593
 
592
594
    _fmt = "%(obj)r is not locked"
593
595
 
594
 
    internal_error = True
595
 
 
596
596
    # this can indicate that any particular object is not locked; see also
597
597
    # LockNotHeld which means that a particular *lock* object is not held by
598
598
    # the caller -- perhaps they should be unified.
619
619
class LockContention(LockError):
620
620
 
621
621
    _fmt = "Could not acquire lock %(lock)s"
622
 
    # TODO: show full url for lock, combining the transport and relative bits?
 
622
    # TODO: show full url for lock, combining the transport and relative
 
623
    # bits?
 
624
 
 
625
    internal_error = False
623
626
    
624
627
    def __init__(self, lock):
625
628
        self.lock = lock
629
632
 
630
633
    _fmt = "Lock was broken while still open: %(lock)s - check storage consistency!"
631
634
 
 
635
    internal_error = False
 
636
 
632
637
    def __init__(self, lock):
633
638
        self.lock = lock
634
639
 
637
642
 
638
643
    _fmt = "Lock was released and re-acquired before being broken: %(lock)s: held by %(holder)r, wanted to break %(target)r"
639
644
 
 
645
    internal_error = False
 
646
 
640
647
    def __init__(self, lock, holder, target):
641
648
        self.lock = lock
642
649
        self.holder = holder
647
654
 
648
655
    _fmt = "Lock not held: %(lock)s"
649
656
 
 
657
    internal_error = False
 
658
 
650
659
    def __init__(self, lock):
651
660
        self.lock = lock
652
661