/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 breezy/errors.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-10 18:19:26 UTC
  • mfrom: (6672.1.3 kill-api)
  • Revision ID: breezy.the.bot@gmail.com-20170610181926-cmki2ndblpjrtn7k
Remove ``breezy.api`` and the concept of API versions.

Merged from https://code.launchpad.net/~jelmer/brz/kill-api/+merge/325442

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):
 
189
class IncompatibleVersion(BzrError):
 
190
 
 
191
    _fmt = 'API %(api)s is not compatible; one of versions %(wanted)r '\
 
192
           'is required, but current version is %(current)r.'
 
193
 
 
194
    def __init__(self, api, wanted, current):
195
195
        self.api = api
196
196
        self.wanted = wanted
197
 
        self.minimum = minimum
198
197
        self.current = current
199
198
 
200
199