~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2005-11-28 05:13:41 UTC
  • mfrom: (1185.33.54 merge-recovered)
  • Revision ID: robertc@robertcollins.net-20051128051341-059936f2f29a12c8
Merge from Martin. Adjust check to work with HTTP again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
        self.not_ancestor_id = not_ancestor_id
268
268
 
269
269
 
270
 
class NotAncestor(BzrError):
271
 
    def __init__(self, rev_id, not_ancestor_id):
272
 
        self.rev_id = rev_id
273
 
        self.not_ancestor_id = not_ancestor_id
274
 
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
275
 
                                                        rev_id)
276
 
        BzrError.__init__(self, msg)
277
 
 
278
 
 
279
270
class InstallFailed(BzrError):
280
271
    def __init__(self, revisions):
281
272
        msg = "Could not install revisions:\n%s" % " ,".join(revisions)
338
329
    """Parents are mismatched between two revisions."""
339
330
    
340
331
 
 
332
class NoSuchExportFormat(BzrNewError):
 
333
    """Export format %(format)r not supported"""
 
334
    def __init__(self, format):
 
335
        BzrNewError.__init__(self)
 
336
        self.format = format
 
337
 
 
338
 
341
339
class TransportError(BzrError):
342
340
    """All errors thrown by Transport implementations should derive
343
341
    from this class.