~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

[merge] from robert and fix up tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        return 'unsupported branch format: %s' % self.args[0]
142
142
 
143
143
 
144
 
class NotVersionedError(BzrError):
145
 
    """Specified object is not versioned."""
 
144
class NotVersionedError(BzrNewError):
 
145
    """%(path)s is not versioned"""
 
146
    def __init__(self, path):
 
147
        BzrNewError.__init__(self)
 
148
        self.path = path
146
149
 
147
150
 
148
151
class BadFileKindError(BzrError):
327
330
class ConflictsInTree(BzrError):
328
331
    def __init__(self):
329
332
        BzrError.__init__(self, "Working tree has conflicts.")
 
333
 
 
334
class SigningFailed(BzrError):
 
335
    def __init__(self, command_line):
 
336
        BzrError.__init__(self, "Failed to gpg sign data with command '%s'"
 
337
                               % command_line)