~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-19 04:22:51 UTC
  • mto: (1185.82.108 w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20051119042251-aaa8514b7d68c29f
Working on creating a factor for serializing changesets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
449
449
    This should never escape bzr, so does not need to be printable.
450
450
    """
451
451
 
 
452
 
 
453
class NoChangesetFound(BzrNewError):
 
454
    """No changeset was found in %(filename)s"""
 
455
    def __init__(self, filename):
 
456
        BzrNewError.__init__(self)
 
457
        self.filename = filename
 
458
 
 
459
 
 
460
class ChangesetNotSupported(BzrNewError):
 
461
    """Unable to handle changeset version %(version)s: %(msg)s"""
 
462
    def __init__(self, version, msg):
 
463
        BzrNewError.__init__(self)
 
464
        self.version = version
 
465
        self.msg = msg
 
466
 
 
467