on_error Event
Reports errors during one-time password (OTP) generation.
Syntax
class OTPClientErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class OTPClient: @property def on_error() -> Callable[[OTPClientErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[OTPClientErrorEventParams], None]) -> None: ...
Remarks
This event is fired in case of exceptional conditions during generation of one-time passwords.
ErrorCode contains an error code and Description contains a textual description of the error.