Exceptions¶
- exception cloudify.exceptions.NonRecoverableError(*args, **kwargs)[source]¶
Bases:
Exception
An error raised by plugins to denote that no retry should be attempted by by the executing workflow engine.
- exception cloudify.exceptions.RecoverableError(message='', retry_after=None, causes=None, **kwargs)[source]¶
Bases:
Exception
An error raised by plugins to explicitly denote that this is a recoverable error (note that this is the default behavior). It is possible specifying how many seconds should pass before a retry is attempted thus overriding the bootstrap context configuration parameter:
cloudify.workflows.retry_interval
- Parameters:
retry_after – How many seconds should the workflow engine wait before re-executing the task the raised this exception. (only applies when the workflow engine decides that this task should be retried)
- exception cloudify.exceptions.OperationRetry(message='', retry_after=None, causes=None, **kwargs)[source]¶
Bases:
RecoverableError
An error raised internally when an operation uses the ctx.operation.retry API for specifying that an operation should be retried.
- exception cloudify.exceptions.CloudifySerializationRetry(message='', retry_after=None, causes=None, **kwargs)[source]¶
Bases:
RecoverableError
An error raised internally when an operation is blocking other node instances from installing.
- exception cloudify.exceptions.HttpException(url, code, message, causes=None, **kwargs)[source]¶
Bases:
NonRecoverableError
Wraps HTTP based exceptions that may be raised.
- Parameters:
url – The url the request was made to.
code – The response status code.
message – The underlying reason for the error.
- exception cloudify.exceptions.CommandExecutionError(command, error=None)[source]¶
Bases:
RuntimeError
Indicates a command failed to execute. note that this is different than the CommandExecutionException in that in this case, the command execution did not even start, and therefore there is not return code or stdout output.
- Parameters:
command – The command executed
error – the error preventing the command from executing
- exception cloudify.exceptions.CommandExecutionException(command, error, output, code)[source]¶
Bases:
Exception
Indicates a command was executed, however some sort of error happened, resulting in a non-zero return value of the process.
- Parameters:
command – The command executed
code – process exit code
error – process stderr output
output – process stdout output
- exception cloudify.exceptions.TimeoutException[source]¶
Bases:
Exception
Indicates some kind of timeout happened.
- exception cloudify.exceptions.ProcessKillCancelled(*args, **kwargs)[source]¶
Bases:
NonRecoverableError
The execution subprocess was kill-cancelled.
This exception should never be shown to the user, but instead it’s used to notify the taskhandler to not send a response.
- exception cloudify.exceptions.ClosedAMQPClientException[source]¶
Bases:
Exception
Raised when attempting to use a closed AMQP client
- exception cloudify.exceptions.PluginInstallationError[source]¶
Bases:
Exception
An error occurred during plugin installation
- exception cloudify.exceptions.StopAgent(*args, **kwargs)[source]¶
Bases:
Exception
Raise this in an operation to force the agent to exit.