on_error Event
Provides information about errors during SMTP operations.
Syntax
class IMAPClientErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class IMAPClient: @property def on_error() -> Callable[[IMAPClientErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[IMAPClientErrorEventParams], None]) -> None: ...
Remarks
This event is fired in case of exceptional conditions occured during SMTP operations.
ErrorCode contains an error code and Description contains a textual description of the error.