<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)}