code: def error(name=None, message=''):
      '''
      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-wheel error
          salt-wheel error.error name="Exception" message="This is an error."
      '''
      ret = {}
      if name is not None:
          salt.utils.error.raise_error(name=name, message=message)
      return ref error(name=None, message=''):
      '''
      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-wheel error
          salt-wheel error.error name="Exception" message="This is an error."
      '''
      ret = {}
      if name is not None:
          salt.utils.error.raise_error(name=name, message=message)
      return ret
docs: 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-wheel error
          salt-wheel error.error name="Exception" message="This is an error."