~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-09-05 05:35:25 UTC
  • mfrom: (974.1.55)
  • Revision ID: mbp@sourcefrog.net-20050905053525-2112bac069dbe331
- merge various bug fixes from aaron

aaron.bentley@utoronto.ca-20050905020131-a2d5b7711dd6cd98

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        BzrCommandError.__init__(self, msg)
100
100
 
101
101
 
 
102
class NotAncestor(BzrError):
 
103
    def __init__(self, rev_id, not_ancestor_id):
 
104
        self.rev_id = rev_id
 
105
        self.not_ancestor_id = not_ancestor_id
 
106
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
 
107
                                                        rev_id)
 
108
        BzrError.__init__(self, msg)
 
109
 
 
110
 
102
111
class InstallFailed(BzrError):
103
112
    def __init__(self, revisions):
104
113
        self.revisions = revisions