OSError errno mapping: OSError(2)->FileNotFoundError, 13->PermissionError, 17->FileExistsError, 32->BrokenPipeError, 10061->ConnectionRefusedError, 22/111/110->OSError (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
On Windows, constructing OSError(111,'x') and OSError(110,'x') stayed plain OSError. IOError, EnvironmentError, WindowsError, socket.error, select.error all is OSError.