~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Marius Kruger
  • Date: 2007-06-27 18:48:10 UTC
  • mfrom: (2557 +trunk)
  • mto: (2605.1.1 rm-renamed)
  • mto: This revision was merged to the branch mainline in revision 2609.
  • Revision ID: marius.kruger@enerweb.co.za-20070627184810-4jq1y5f20xafow9w
Merge with bzr.dev

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"
2136
2148
 
2137
2149
    def __init__(self, response_tuple):
2138
2150
        self.response_tuple = response_tuple
 
2151
 
 
2152
 
 
2153
class NoDestinationAddress(BzrError):
 
2154
 
 
2155
    _fmt = "Message does not have a destination address."
 
2156
 
 
2157
    internal_error = True
 
2158
 
 
2159
 
 
2160
class SMTPError(BzrError):
 
2161
 
 
2162
    _fmt = "SMTP error: %(error)s"
 
2163
 
 
2164
    def __init__(self, error):
 
2165
        self.error = error