code: def set_exception(self, exc_class, exc_info, exc_stack):
          
  
          if self.is_finished():
              raise InternalError("set_exception called on finished AsynchronousResponse",
                                  result=self._result, exception=self._exception)
  
          self._exception = (exc_class, exc_info, exc_stack)
          self.finish()
docs: Set an exception as the result of this operation.
  
          Args:
              exc_class (object): The exception type