on_file_error Event
Reports a file access error to the application.
Syntax
class RESTServerFileErrorEventParams(object): @property def connection_id() -> int: ... @property def file_name() -> str: ... @property def error_code() -> int: ... # In class RESTServer: @property def on_file_error() -> Callable[[RESTServerFileErrorEventParams], None]: ... @on_file_error.setter def on_file_error(event_hook: Callable[[RESTServerFileErrorEventParams], None]) -> None: ...
Remarks
The class uses this event to report a file access errors. FileName and ErrorCode contain the file path and the error code respectively.