Exceptions¶
-
exception
cloudify.exceptions.
NonRecoverableError
[source]¶ Bases:
exceptions.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=None, retry_after=None)[source]¶ Bases:
exceptions.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=None, retry_after=None)[source]¶ Bases:
cloudify.exceptions.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.
HttpException
(url, code, message)[source]¶ Bases:
cloudify.exceptions.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.
CommandExecutionException
(command, error, output, code)[source]¶ Bases:
exceptions.Exception
Indicates a failure to execute a command.
Parameters: - command – The command executed
- error – process stderr output
- output – process stdout output
- code – process exit code