def _get_error_message_from_exception(self, e):
    ' This method is used to get appropriate error message from the exception.\n        :param e: Exception object\n        :return: error message\n        '
    try:
        if e.args:
            if (len(e.args) > 1):
                error_code = e.args[0]
                error_msg = e.args[1]
            elif (len(e.args) == 1):
                error_code = 'Error code unavailable'
                error_msg = e.args[0]
        else:
            error_code = 'Error code unavailable'
            error_msg = 'Error message unavailable. Please check the asset configuration and|or action parameters.'
    except Exception:
        error_code = 'Error code unavailable'
        error_msg = 'Error message unavailable. Please check the asset configuration and|or action parameters.'
    return (error_code, error_msg)
This method is used to get appropriate error message from the exception.
:param e: Exception object
:return: error message
def _get_error_message_from_exception(self, e):
    ' This method is used to get appropriate error message from the exception.\n        :param e: Exception object\n        :return: error message\n        '
    try:
        if e.args:
            if (len(e.args) > 1):
                error_code = e.args[0]
                error_msg = e.args[1]
            elif (len(e.args) == 1):
                error_code = 'Error code unavailable'
                error_msg = e.args[0]
        else:
            error_code = 'Error code unavailable'
            error_msg = 'Error message unavailable. Please check the asset configuration and|or action parameters.'
    except Exception:
        error_code = 'Error code unavailable'
        error_msg = 'Error message unavailable. Please check the asset configuration and|or action parameters.'
    return (error_code, error_msg)