Module Expr Str ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Dict If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list
N/A N/A 
Error generator to enable integration testing of salt runner error handling

 __future__ absolute_import N/A salt.utils.error error N/A N/A name message N/A None N/A N/A 
    If name is None Then return empty dict

    Otherwise raise an exception with __name__ from name, message from message

    CLI Example:

    .. code-block:: bash

        salt-run error
        salt-run error.error name="Exception" message="This is an error."
     N/A ret N/A N/A N/A name None N/A N/A N/A N/A N/A N/A salt utils error raise_error name name message message N/A ret N/A