~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-09-07 04:10:04 UTC
  • Revision ID: mbp@sourcefrog.net-20050907041004-f68741f7eb041264
- clean up code for retrieving stored inventories

- new HistoryMissing exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        BzrError.__init__(self, msg)
93
93
 
94
94
 
 
95
class HistoryMissing(BzrError):
 
96
    def __init__(self, branch, object_type, object_id):
 
97
        self.branch = branch
 
98
        BzrError.__init__(self,
 
99
                          '%s is missing %s {%s}'
 
100
                          % (branch, object_type, object_id))
 
101
 
 
102
 
95
103
class UnrelatedBranches(BzrCommandError):
96
104
    def __init__(self):
97
105
        msg = "Branches have no common ancestor, and no base revision"\