~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-25 13:46:10 UTC
  • mfrom: (2547.1.1 Aaron's integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070625134610-4y70duw4fcuj8txe
Add SMTPConnection class (Adeodato Simó)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2136
2136
 
2137
2137
    def __init__(self, response_tuple):
2138
2138
        self.response_tuple = response_tuple
 
2139
 
 
2140
 
 
2141
class NoDestinationAddress(BzrError):
 
2142
 
 
2143
    _fmt = "Message does not have a destination address."
 
2144
 
 
2145
    internal_error = True
 
2146
 
 
2147
 
 
2148
class SMTPError(BzrError):
 
2149
 
 
2150
    _fmt = "SMTP error: %(error)s"
 
2151
 
 
2152
    def __init__(self, error):
 
2153
        self.error = error