Sets the exception on the future.
(self, exception)
| 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 | |
| 122 | class TransferMeta(BaseTransferMeta): |
nothing calls this directly
no test coverage detected