~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

[merge] up-to-date against bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        self.path = path
161
161
 
162
162
 
 
163
class FileInWrongBranch(BzrNewError):
 
164
    """File %(path)s in not in branch %(branch_base)s."""
 
165
    def __init__(self, branch, path):
 
166
        BzrNewError.__init__(self)
 
167
        self.branch = branch
 
168
        self.branch_base = branch.base
 
169
        self.path = path
 
170
 
 
171
 
163
172
class UnsupportedFormatError(BzrError):
164
173
    """Specified path is a bzr branch that we cannot read."""
165
174
    def __str__(self):
459
468
    This should never escape bzr, so does not need to be printable.
460
469
    """
461
470
 
 
471
class MissingText(BzrNewError):
 
472
    """Branch %(base)s is missing revision %(text_revision)s of %(file_id)s"""
 
473
    def __init__(self, branch, text_revision, file_id):
 
474
        self.branch = branch
 
475
        self.base = branch.base
 
476
        self.text_revision = text_revision
 
477
        self.file_id = file_id