Cloud Mail 2020 Python Edition

Questions / Feedback?

on_error Event

Information about errors during data delivery.


class GMailErrorEventParams(object):
  def error_code() -> int: ...
  def description() -> str: ...

# In class GMail:
def on_error() -> Callable[[GMailErrorEventParams], None]: ...
def on_error(event_hook: Callable[[GMailErrorEventParams], None]) -> None: ...


The on_error event is fired in case of exceptional conditions during message processing. Normally the class fails with an error.

ErrorCode contains an error code and Description contains a textual description of the error. For a list of valid error codes and their descriptions, please refer to the Error Codes section.

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Mail 2020 Python Edition - Version 20.0 [Build 8308]