Sets the exception on the future.
(self, exception)
| 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 | |
| 423 | class BaseCRTRequestSerializer: |
no test coverage detected