~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2005-10-08 00:49:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1423.
  • Revision ID: robertc@robertcollins.net-20051008004913-542d2cc46704c6e2
raise a specific error on unsupported branches so that they can be distinguished from generic errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        return 'not a branch: %s' % self.args[0]
66
66
 
67
67
 
 
68
class UnsupportedFormatError(BzrError):
 
69
    """Specified path is a bzr branch that we cannot read."""
 
70
    def __str__(self):
 
71
        return 'unsupported branch format: %s' % self.args[0]
 
72
 
 
73
 
68
74
class NotVersionedError(BzrError):
69
75
    """Specified object is not versioned."""
70
76