This module is a central location for all salt exceptions
salt.exceptions.
AuthorizationError
Thrown when runner or wheel execution fails due to permissions
salt.exceptions.
CommandExecutionError
Used when a module runs a command which returns an error and wants to show the user the output gracefully instead of dying
salt.exceptions.
CommandNotFoundError
Used in modules or grains when a required binary is not available
salt.exceptions.
PkgParseError
Used when of the pkg modules cannot correctly parse the output from the CLI tool (pacman, yum, apt, aptitude, etc)
salt.exceptions.
SaltClientTimeout
(msg, jid=None, *args, **kwargs)Thrown when a job sent through one of the Client interfaces times out
Takes the jid
as a parameter
salt.exceptions.
SaltCloudConfigError
Raised when a configuration setting is not found and should exist.
salt.exceptions.
SaltCloudExecutionFailure
Raised when too much failures have occurred while querying/waiting for data.
salt.exceptions.
SaltCloudExecutionTimeout
Raised when too much time has passed while querying/waiting for data.
salt.exceptions.
SaltCloudNotFound
Raised when some cloud provider function cannot find what's being searched.
salt.exceptions.
SaltCloudSystemExit
(message, exit_code=1)This exception is raised when the execution should be stopped.
salt.exceptions.
SaltException
Base exception class; all Salt-specific exceptions should subclass this
salt.exceptions.
SaltInvocationError
Used when the wrong number of arguments are sent to modules or invalid arguments are specified on the command line
salt.exceptions.
SaltRenderError
(error, line_num=None, buf='', marker=' <======================', trace=None)Used when a renderer needs to raise an explicit error. If a line number and buffer string are passed, get_context will be invoked to get the location of the error.
salt.exceptions.
SaltReqTimeoutError
Thrown when a salt master request call fails to return within the timeout
salt.exceptions.
SaltSyndicMasterError
Problem while proxying a request in the syndication master
salt.exceptions.
SaltSystemExit
(code=0, msg=None)This exception is raised when an unsolvable problem is found. There's nothing else to do, salt should just exit.