docs: def handle_exception(self, e, task_path):
          # type: (Exception, str) -> dict
          """Handle exception raised during task execution.
  
          :param e: exception
          :type e: Exception
          :param task_path: task path
          :type task_path: str
          :return: exception as task result
          :rtype: dict
          """
  
          self._app.logger.error(str(e) + "\n" + traceback.format_exc())
          return {'task_name': task_path, 'data': None, 'error': str(e)}