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