~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

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):