bpo-11953: Extend table of Windows WSA* error codes (GH-15004) · python/cpython@71ea688 (original) (raw)

`@@ -104,24 +104,105 @@ def _intenum_converter(value, enum_klass):

`

104

104

`except ValueError:

`

105

105

`return value

`

106

106

``

``

107

+

107

108

`# WSA error codes

`

108

109

`if sys.platform.lower().startswith("win"):

`

109

110

`errorTab = {}

`

``

111

`+

errorTab[6] = "Specified event object handle is invalid."

`

``

112

`+

errorTab[8] = "Insufficient memory available."

`

``

113

`+

errorTab[87] = "One or more parameters are invalid."

`

``

114

`+

errorTab[995] = "Overlapped operation aborted."

`

``

115

`+

errorTab[996] = "Overlapped I/O event object not in signaled state."

`

``

116

`+

errorTab[997] = "Overlapped operation will complete later."

`

110

117

`errorTab[10004] = "The operation was interrupted."

`

111

118

`errorTab[10009] = "A bad file handle was passed."

`

112

119

`errorTab[10013] = "Permission denied."

`

113

``

`-

errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT

`

``

120

`+

errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT

`

114

121

`errorTab[10022] = "An invalid operation was attempted."

`

``

122

`+

errorTab[10024] = "Too many open files."

`

115

123

`errorTab[10035] = "The socket operation would block"

`

116

124

`errorTab[10036] = "A blocking operation is already in progress."

`

``

125

`+

errorTab[10037] = "Operation already in progress."

`

``

126

`+

errorTab[10038] = "Socket operation on nonsocket."

`

``

127

`+

errorTab[10039] = "Destination address required."

`

``

128

`+

errorTab[10040] = "Message too long."

`

``

129

`+

errorTab[10041] = "Protocol wrong type for socket."

`

``

130

`+

errorTab[10042] = "Bad protocol option."

`

``

131

`+

errorTab[10043] = "Protocol not supported."

`

``

132

`+

errorTab[10044] = "Socket type not supported."

`

``

133

`+

errorTab[10045] = "Operation not supported."

`

``

134

`+

errorTab[10046] = "Protocol family not supported."

`

``

135

`+

errorTab[10047] = "Address family not supported by protocol family."

`

117

136

`errorTab[10048] = "The network address is in use."

`

``

137

`+

errorTab[10049] = "Cannot assign requested address."

`

``

138

`+

errorTab[10050] = "Network is down."

`

``

139

`+

errorTab[10051] = "Network is unreachable."

`

``

140

`+

errorTab[10052] = "Network dropped connection on reset."

`

``

141

`+

errorTab[10053] = "Software caused connection abort."

`

118

142

`errorTab[10054] = "The connection has been reset."

`

``

143

`+

errorTab[10055] = "No buffer space available."

`

``

144

`+

errorTab[10056] = "Socket is already connected."

`

``

145

`+

errorTab[10057] = "Socket is not connected."

`

119

146

`errorTab[10058] = "The network has been shut down."

`

``

147

`+

errorTab[10059] = "Too many references."

`

120

148

`errorTab[10060] = "The operation timed out."

`

121

149

`errorTab[10061] = "Connection refused."

`

``

150

`+

errorTab[10062] = "Cannot translate name."

`

122

151

`errorTab[10063] = "The name is too long."

`

123

152

`errorTab[10064] = "The host is down."

`

124

153

`errorTab[10065] = "The host is unreachable."

`

``

154

`+

errorTab[10066] = "Directory not empty."

`

``

155

`+

errorTab[10067] = "Too many processes."

`

``

156

`+

errorTab[10068] = "User quota exceeded."

`

``

157

`+

errorTab[10069] = "Disk quota exceeded."

`

``

158

`+

errorTab[10070] = "Stale file handle reference."

`

``

159

`+

errorTab[10071] = "Item is remote."

`

``

160

`+

errorTab[10091] = "Network subsystem is unavailable."

`

``

161

`+

errorTab[10092] = "Winsock.dll version out of range."

`

``

162

`+

errorTab[10093] = "Successful WSAStartup not yet performed."

`

``

163

`+

errorTab[10101] = "Graceful shutdown in progress."

`

``

164

`+

errorTab[10102] = "No more results from WSALookupServiceNext."

`

``

165

`+

errorTab[10103] = "Call has been canceled."

`

``

166

`+

errorTab[10104] = "Procedure call table is invalid."

`

``

167

`+

errorTab[10105] = "Service provider is invalid."

`

``

168

`+

errorTab[10106] = "Service provider failed to initialize."

`

``

169

`+

errorTab[10107] = "System call failure."

`

``

170

`+

errorTab[10108] = "Service not found."

`

``

171

`+

errorTab[10109] = "Class type not found."

`

``

172

`+

errorTab[10110] = "No more results from WSALookupServiceNext."

`

``

173

`+

errorTab[10111] = "Call was canceled."

`

``

174

`+

errorTab[10112] = "Database query was refused."

`

``

175

`+

errorTab[11001] = "Host not found."

`

``

176

`+

errorTab[11002] = "Nonauthoritative host not found."

`

``

177

`+

errorTab[11003] = "This is a nonrecoverable error."

`

``

178

`+

errorTab[11004] = "Valid name, no data record requested type."

`

``

179

`+

errorTab[11005] = "QoS receivers."

`

``

180

`+

errorTab[11006] = "QoS senders."

`

``

181

`+

errorTab[11007] = "No QoS senders."

`

``

182

`+

errorTab[11008] = "QoS no receivers."

`

``

183

`+

errorTab[11009] = "QoS request confirmed."

`

``

184

`+

errorTab[11010] = "QoS admission error."

`

``

185

`+

errorTab[11011] = "QoS policy failure."

`

``

186

`+

errorTab[11012] = "QoS bad style."

`

``

187

`+

errorTab[11013] = "QoS bad object."

`

``

188

`+

errorTab[11014] = "QoS traffic control error."

`

``

189

`+

errorTab[11015] = "QoS generic error."

`

``

190

`+

errorTab[11016] = "QoS service type error."

`

``

191

`+

errorTab[11017] = "QoS flowspec error."

`

``

192

`+

errorTab[11018] = "Invalid QoS provider buffer."

`

``

193

`+

errorTab[11019] = "Invalid QoS filter style."

`

``

194

`+

errorTab[11020] = "Invalid QoS filter style."

`

``

195

`+

errorTab[11021] = "Incorrect QoS filter count."

`

``

196

`+

errorTab[11022] = "Invalid QoS object length."

`

``

197

`+

errorTab[11023] = "Incorrect QoS flow count."

`

``

198

`+

errorTab[11024] = "Unrecognized QoS object."

`

``

199

`+

errorTab[11025] = "Invalid QoS policy object."

`

``

200

`+

errorTab[11026] = "Invalid QoS flow descriptor."

`

``

201

`+

errorTab[11027] = "Invalid QoS provider-specific flowspec."

`

``

202

`+

errorTab[11028] = "Invalid QoS provider-specific filterspec."

`

``

203

`+

errorTab[11029] = "Invalid QoS shape discard mode object."

`

``

204

`+

errorTab[11030] = "Invalid QoS shaping rate object."

`

``

205

`+

errorTab[11031] = "Reserved policy QoS element type."

`

125

206

`all.append("errorTab")

`

126

207

``

127

208

``