~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: 2007-03-15 15:12:45 UTC
  • mfrom: (2353.3.12 lock_cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20070315151245-0d48a831784fc542
(John Arbash Meinel) Clean up OS locks, and implement per-lock implementation tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
700
700
        self.obj = obj
701
701
 
702
702
 
 
703
class ReadOnlyLockError(LockError):
 
704
 
 
705
    _fmt = "Cannot acquire write lock on %(fname)s. %(msg)s"
 
706
 
 
707
    def __init__(self, fname, msg):
 
708
        LockError.__init__(self, '')
 
709
        self.fname = fname
 
710
        self.msg = msg
 
711
 
 
712
 
703
713
class OutSideTransaction(BzrError):
704
714
 
705
715
    _fmt = ("A transaction related operation was attempted after"