MCPcopy Create free account
hub / github.com/aws/aws-cli / set_exception

Method set_exception

awscli/s3transfer/crt.py:413–420  ·  view source on GitHub ↗

Sets the exception on the future.

(self, exception)

Source from the content-addressed store, hash-verified

411 self._coordinator.cancel()
412
413 def set_exception(self, exception):
414 """Sets the exception on the future."""
415 if not self.done():
416 raise TransferNotDoneError(
417 'set_exception can only be called once the transfer is '
418 'complete.'
419 )
420 self._coordinator.set_exception(exception, override=True)
421
422
423class BaseCRTRequestSerializer:

Callers 6

__call__Method · 0.45
_finalize_downloadMethod · 0.45
_on_successMethod · 0.45
_on_successMethod · 0.45
_on_successMethod · 0.45

Calls 2

doneMethod · 0.95

Tested by

no test coverage detected