~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-06-25 13:17:32 UTC
  • mfrom: (2535.2.5 bzr.smtp_connection)
  • mto: This revision was merged to the branch mainline in revision 2548.
  • Revision ID: abentley@panoramicfeedback.com-20070625131732-8jp7229jrt5r7khp
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