Go to the latest version of this document.

# ``twisted`.`mail`.`smtp`.`SMTPClientError``

exception documentation

`class SMTPClientError(SMTPError): (source)`

Known subclasses: `twisted.mail.smtp.ESMTPClientError`, `twisted.mail.smtp.SMTPConnectError`, `twisted.mail.smtp.SMTPDeliveryError`, `twisted.mail.smtp.SMTPProtocolError`, `twisted.mail.smtp.SMTPTimeoutError`

Constructor: `SMTPClientError(code, resp, log, addresses, ...)`

View In Hierarchy

Base class for SMTP client errors.

Method | `__bytes__` | Undocumented
Method | `__init__` | No summary
Method | `__str__` | Undocumented
Instance Variable | `addresses` | Undocumented
Instance Variable | `code` | Undocumented
Instance Variable | `isFatal` | Undocumented
Instance Variable | `log` | Undocumented
Instance Variable | `resp` | Undocumented
Instance Variable | `retry` | Undocumented

def __bytes__(self) -> `bytes`: (source)

Undocumented

def __init__(self, code: `int`, resp: `bytes`, log: `bytes | None` = None, addresses: `object | None` = None, isFatal: `bool` = False, retry: `bool` = False): (source)
overridden in `twisted.mail.smtp.SMTPConnectError`, `twisted.mail.smtp.SMTPProtocolError`, `twisted.mail.smtp.SMTPTimeoutError`

Parameters
code:`int` | The SMTP response code associated with this error.
resp:`bytes` | The string response associated with this error.
log:`bytes | None` | A string log of the exchange leading up to and including the error.
addresses:`object | None` | Undocumented
isFatal:`bool` | A boolean indicating whether this connection can proceed or not. If True, the connection will be dropped.
retry:`bool` | A boolean indicating whether the delivery should be retried. If True and the factory indicates further retries are desirable, they will be attempted, otherwise the delivery will be failed.

def __str__(self) -> `str`: (source)

Undocumented

addresses = (source)

Undocumented

code = (source)

Undocumented

isFatal = (source)

Undocumented

log = (source)

Undocumented

resp = (source)

Undocumented

retry = (source)

Undocumented