/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: v.ladeuil+lp at free
  • Date: 2006-10-17 14:01:12 UTC
  • mfrom: (2084 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061017140112-8ae6aac456429ccf
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
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
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
 
1020
1036
    """Tree transform is malformed %(conflicts)r"""
1021
1037
 
1022
1038
 
 
1039
class NoFinalPath(BzrNewError):
 
1040
    """No final name for trans_id %(trans_id)r
 
1041
    file-id: %(file_id)r"
 
1042
    root trans-id: %(root_trans_id)r 
 
1043
    """
 
1044
 
 
1045
    def __init__(self, trans_id, transform):
 
1046
        self.trans_id = trans_id
 
1047
        self.file_id = transform.final_file_id(trans_id)
 
1048
        self.root_trans_id = transform.root
 
1049
 
 
1050
 
1023
1051
class BzrBadParameter(BzrNewError):
1024
1052
    """A bad parameter : %(param)s is not usable.
1025
1053