on_file_error Event
Reports a file access error to the application.
Syntax
class HTTPServerFileErrorEventParams(object): @property def connection_id() -> int: ... @property def file_name() -> str: ... @property def error_code() -> int: ... # In class HTTPServer: @property def on_file_error() -> Callable[[HTTPServerFileErrorEventParams], None]: ... @on_file_error.setter def on_file_error(event_hook: Callable[[HTTPServerFileErrorEventParams], 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.