MCPcopy
hub / github.com/aio-libs/aiohttp / set_exception

Method set_exception

aiohttp/streams.py:409–416  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

407 return self._exception
408
409 def set_exception(self, exc):
410 self._exception = exc
411
412 waiter = self._waiter
413 if waiter is not None:
414 self._waiter = None
415 if not waiter.done():
416 waiter.set_exception(exc)
417
418 def feed_data(self, data, size=0):
419 self._size += size

Callers 15

write_bytesMethod · 0.45
set_exceptionMethod · 0.45
_sendfile_cbMethod · 0.45
excMethod · 0.45
test_connect_timeoutMethod · 0.45
test_connect_oserrMethod · 0.45
test_read_exceptionMethod · 0.45
test_exceptionMethod · 0.45
set_errMethod · 0.45

Calls

no outgoing calls

Tested by 15

excMethod · 0.36
test_connect_timeoutMethod · 0.36
test_connect_oserrMethod · 0.36
test_read_exceptionMethod · 0.36
test_exceptionMethod · 0.36
set_errMethod · 0.36
test_exception_cancelMethod · 0.36