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

Method set_exception

awscli/s3transfer/futures.py:112–119  ·  view source on GitHub ↗

Sets the exception on the future.

(self, exception)

Source from the content-addressed store, hash-verified

110 self._coordinator.cancel()
111
112 def set_exception(self, exception):
113 """Sets the exception on the future."""
114 if not self.done():
115 raise TransferNotDoneError(
116 'set_exception can only be called once the transfer is '
117 'complete.'
118 )
119 self._coordinator.set_exception(exception, override=True)
120
121
122class TransferMeta(BaseTransferMeta):

Callers

nothing calls this directly

Calls 2

doneMethod · 0.95

Tested by

no test coverage detected