def _get_error_result(self):
        """
        Prepares a structured error result based on the exception.

        :type e: ``Exception``

        :rtype: ``dict``
        """
        _, exc_value, exc_traceback = sys.exc_info()

        exc_value = str(exc_value)
        exc_traceback = "".join(traceback.format_tb(exc_traceback))

        result = {}
        result["failed"] = True
        result["succeeded"] = False
        result["error"] = exc_value
        result["traceback"] = exc_traceback
        return result

        Prepares a structured error result based on the exception.

        :type e: ``Exception``

        :rtype: ``dict``
        
st2common/st2common/models/system/action.py