on_error Event
Reports information about errors during request processing or signing.
Syntax
class DCAuthErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class DCAuth: @property def on_error() -> Callable[[DCAuthErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[DCAuthErrorEventParams], None]) -> None: ...
Remarks
The event is fired if an error occurs during the request processing. Use the ErrorCode and Description parameters to get the details.