/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

MergeĀ up.

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
 
899
915
        BzrError.__init__(self, message)
900
916
 
901
917
 
 
918
class NoEmailInUsername(BzrNewError):
 
919
    """%(username)r does not seem to contain a reasonable email address"""
 
920
 
 
921
    def __init__(self, username):
 
922
        BzrNewError.__init__(self)
 
923
        self.username = username
 
924
 
 
925
 
902
926
class SigningFailed(BzrError):
903
927
    def __init__(self, command_line):
904
928
        BzrError.__init__(self, "Failed to gpg sign data with command '%s'"