parameters: (self, exception, override=False)
docstring: Set an exception for the TransferFuture
  
          Implies the TransferFuture failed.
  
          :param exception: The exception that cause the transfer to fail.
          :param override: If True, override any existing state.
docstring_summary: Set an exception for the TransferFuture
docstring_tokens: Set an exception for the TransferFuture
function: def set_exception(self, exception, override=False):
          """Set an exception for the TransferFuture
  
          Implies the TransferFuture failed.
  
          :param exception: The exception that cause the transfer to fail.
          :param override: If True, override any existing state.
          """
          with self._lock:
              if not self.done() or override:
                  self._exception = exception
                  self._status = 'failed'
function_tokens: def set_exception ( self , exception , override = False ) : with self . _lock : if not self . done ( ) or override : self . _exception = exception self . _status = 'failed'