on_error Event
This event is fired when the server sends a protocol error message.
Syntax
class XMPPErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class XMPP: @property def on_error() -> Callable[[XMPPErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[XMPPErrorEventParams], None]) -> None: ...
Remarks
This is fired whenever there is a protocol error. ErrorCode will contain the error code string sent by the server. Description will contain the Xmpp class's interpretation of the code.