~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-08-10 16:17:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2696.
  • Revision ID: abentley@panoramicfeedback.com-20070810161730-fda8tva0jxraklk4
Make error handling nicer when SMTP server not working

Show diffs side-by-side

added added

removed removed

Lines of Context:
2308
2308
 
2309
2309
    def __init__(self, error):
2310
2310
        self.error = error
 
2311
 
 
2312
 
 
2313
class SMTPConnectionRefused(SMTPError):
 
2314
 
 
2315
    _fmt = "SMTP connection to %(host)s refused"
 
2316
 
 
2317
    def __init__(self, error, host):
 
2318
        self.error = error
 
2319
        self.host = host
 
2320
 
 
2321
 
 
2322
class DefaultSMTPConnectionRefused(SMTPConnectionRefused):
 
2323
 
 
2324
    _fmt = "Please specify smtp_server.  No server at default %(host)s."