/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Daniel Watkins
  • Date: 2008-03-03 17:44:53 UTC
  • mto: (3144.6.3 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 3265.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303174453-5wbemucwuc176emh
Modified UnknownFormatError to allow a kind to be specified.

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
 
685
685
class UnknownFormatError(BzrError):
686
686
    
687
 
    _fmt = "Unknown branch format: %(format)r"
 
687
    _fmt = "Unknown %(kind)s format: %(format)r"
 
688
 
 
689
    def __init__(self, format, kind='branch'):
 
690
        self.kind = kind
 
691
        self.format = format
688
692
 
689
693
 
690
694
class IncompatibleFormat(BzrError):