def handle_exception(self, e, task_path):<EOL>
self._app.logger.error(str(e) + "<STR_LIT:\n>" + traceback.format_exc())<EOL>return {'<STR_LIT>': task_path, '<STR_LIT:data>': None, '<STR_LIT:error>': str(e)}<EOL>
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