~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-02-21 08:05:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060221080504-583fd88ceaa3b637
Start LockDir.confirm method and LockBroken exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# (C) 2005 Canonical
 
1
# Copyright (C) 2005 Canonical
2
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
300
300
        self.lock = lock
301
301
 
302
302
 
 
303
class LockBroken(LockError):
 
304
    """Lock broken: %(lock)s"""
 
305
    def __init__(self, lock):
 
306
        self.lock = lock
 
307
 
 
308
 
303
309
class LockNotHeld(LockError):
304
310
    """Lock not held: %(lock)s"""
305
311
    def __init__(self, lock):