MCPcopy
hub / github.com/pallets/werkzeug / ClientDisconnected

Class ClientDisconnected

src/werkzeug/exceptions.py:234–246  ·  view source on GitHub ↗

Internal exception that is raised if Werkzeug detects a disconnected client. Since the client is already gone at that point attempting to send the error message to the client might not work and might ultimately result in another exception in the server. Mainly this is here so that

Source from the content-addressed store, hash-verified

232
233
234class ClientDisconnected(BadRequest):
235 """Internal exception that is raised if Werkzeug detects a disconnected
236 client. Since the client is already gone at that point attempting to
237 send the error message to the client might not work and might ultimately
238 result in another exception in the server. Mainly this is here so that
239 it is silenced by default as far as Werkzeug is concerned.
240
241 Since disconnections cannot be reliably detected and are unspecified
242 by WSGI to a large extent this might or might not be raised if a client
243 is gone.
244
245 .. versionadded:: 0.8
246 """
247
248
249class SecurityError(BadRequest):

Callers 1

on_disconnectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected