on_error Event
This event is fired when the server detects an error.
Syntax
class SMPPErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class SMPP: @property def on_error() -> Callable[[SMPPErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[SMPPErrorEventParams], None]) -> None: ...
Remarks
If the server sends an error not related to a command sent from the class, the class will fire an on_error event containing information related to the error.
ErrorCode will contain the code sent by the server, and Description will contain a standard interpretation of that code.