~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-26 23:43:09 UTC
  • mfrom: (2550.2.5 api_api)
  • Revision ID: pqm@pqm.ubuntu.com-20070626234309-j6n7rdpbmjjfgicn
(robertc) Export explicit API compatibility for bzrlib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
        self.class_name = class_name
187
187
 
188
188
 
 
189
class IncompatibleAPI(BzrError):
 
190
 
 
191
    _fmt = 'The API for "%(api)s" is not compatible with "%(wanted)s". '\
 
192
        'It supports versions "%(minimum)s" to "%(current)s".'
 
193
 
 
194
    def __init__(self, api, wanted, minimum, current):
 
195
        self.api = api
 
196
        self.wanted = wanted
 
197
        self.minimum = minimum
 
198
        self.current = current
 
199
 
 
200
 
189
201
class InvalidEntryName(BzrError):
190
202
    
191
203
    _fmt = "Invalid entry name: %(name)s"