~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Adeodato Simó
  • Date: 2007-06-20 00:39:33 UTC
  • mto: (2547.1.1 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 2548.
  • Revision ID: dato@net.com.org.es-20070620003933-cjj1lq1lqgav5gm6
Don't use BzrCommandError in non-UI code; create and use an SMTPError
exception instead.

Show diffs side-by-side

added added

removed removed

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