/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-04 20:59:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2223.
  • Revision ID: abentley@panoramicfeedback.com-20070104205946-fk5wxpb3bqoi3b7e
PEP8-correctness

Show diffs side-by-side

added added

removed removed

Lines of Context:
540
540
class LockError(BzrError):
541
541
 
542
542
    _fmt = "Lock error: %(message)s"
 
543
 
543
544
    internal_error = True
544
545
 
545
546
    # All exceptions from the lock/unlock functions should be from
612
613
    _fmt = "Could not acquire lock %(lock)s"
613
614
    # TODO: show full url for lock, combining the transport and relative
614
615
    # bits?
 
616
 
615
617
    internal_error = False
616
618
    
617
619
    def __init__(self, lock):
621
623
class LockBroken(LockError):
622
624
 
623
625
    _fmt = "Lock was broken while still open: %(lock)s - check storage consistency!"
 
626
 
624
627
    internal_error = False
625
628
 
626
629
    def __init__(self, lock):
630
633
class LockBreakMismatch(LockError):
631
634
 
632
635
    _fmt = "Lock was released and re-acquired before being broken: %(lock)s: held by %(holder)r, wanted to break %(target)r"
 
636
 
633
637
    internal_error = False
634
638
 
635
639
    def __init__(self, lock, holder, target):
641
645
class LockNotHeld(LockError):
642
646
 
643
647
    _fmt = "Lock not held: %(lock)s"
 
648
 
644
649
    internal_error = False
645
650
 
646
651
    def __init__(self, lock):