~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-16 04:50:19 UTC
  • mfrom: (2079 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: john@arbash-meinel.com-20061016045019-58fb4e339f93b1d7
[merge] bzr.dev 2079

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        self.branch = branch
184
184
 
185
185
 
 
186
class InventoryModified(BzrNewError):
 
187
    """The current inventory for the tree %(tree)r has been modified, so a clean inventory cannot be read without data loss."""
 
188
 
 
189
    def __init__(self, tree):
 
190
        BzrNewError.__init__(self)
 
191
        self.tree = tree
 
192
 
 
193
 
186
194
class NoSuchId(BzrNewError):
187
195
    """The file id %(file_id)s is not present in the tree %(tree)s."""
188
196
    
212
220
        self.url = url
213
221
 
214
222
 
 
223
class NotWriteLocked(BzrNewError):
 
224
    """%(not_locked)r is not write locked but needs to be."""
 
225
 
 
226
    def __init__(self, not_locked):
 
227
        BzrNewError.__init__(self)
 
228
        self.not_locked = not_locked
 
229
 
 
230
 
215
231
class BzrCommandError(BzrNewError):
216
232
    """Error from user command"""
217
233