runway.exceptions module¶
Runway exceptions.
- exception runway.exceptions.ConfigNotFound[source]¶
Bases:
RunwayError
Configuration file could not be found.
- exception runway.exceptions.DockerConnectionRefusedError[source]¶
Bases:
RunwayError
Docker connection refused.
This can be caused by a number of reasons:
Docker is not installed.
Docker service is not running.
The current user does not have adequate permissions (e.g. not a member of the
docker
group).
- exception runway.exceptions.DockerExecFailedError[source]¶
Bases:
RunwayError
Docker failed when trying to execute a command.
This can be used for
docker container run
,docker container start
anddocker exec
equivalents.
- exception runway.exceptions.FailedLookup[source]¶
Bases:
RunwayError
Intermediary Exception to be converted to FailedVariableLookup.
Should be caught by error handling and
runway.cfngin.exceptions.FailedVariableLookup
raised instead to construct a proper error message.- __init__(lookup: VariableValueLookup, cause: Exception, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
lookup – The variable value lookup that was attempted and resulted in an exception being raised.
cause – The exception that was raised.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.exceptions.FailedVariableLookup[source]¶
Bases:
RunwayError
Lookup could not be resolved.
Raised when an exception is raised when trying to resolve a lookup.
- __init__(variable: Variable, lookup_error: FailedLookup, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
variable – The variable containing the failed lookup.
lookup_error – The exception that was raised directly before this one.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.exceptions.HclParserError[source]¶
Bases:
RunwayError
HCL/HCL2 parser error.
- exception runway.exceptions.InvalidLookupConcatenation[source]¶
Bases:
RunwayError
Invalid return value for a concatenated (chained) lookup.
The return value must be a string when lookups are concatenated.
- __init__(invalid_lookup: VariableValue, concat_lookups: VariableValueConcatenation[Any], *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- exception runway.exceptions.KubectlVersionNotSpecified[source]¶
Bases:
RunwayError
kubectl version is required but was not specified.
Version can be specified by using a file or option.
- exception runway.exceptions.NpmNotFound[source]¶
Bases:
RunwayError
Raised when npm could not be executed or was not found in path.
- exception runway.exceptions.OutputDoesNotExist[source]¶
Bases:
RunwayError
Raised when a specific stack output does not exist.
- exception runway.exceptions.RequiredTagNotFoundError[source]¶
Bases:
RunwayError
Required tag not found on resource.
- exception runway.exceptions.RunwayError[source]¶
Bases:
Exception
Base class for custom exceptions raised by Runway.
- exception runway.exceptions.UnknownLookupType[source]¶
Bases:
RunwayError
Lookup type provided does not match a registered lookup.
Example
If a lookup of
${<lookup_type> query}
is used and<lookup_type>
is not a registered lookup, this exception will be raised.- __init__(lookup: VariableValueLookup, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
lookup – Variable value lookup that could not find a handler.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.exceptions.UnresolvedVariable[source]¶
Bases:
RunwayError
Raised when trying to use a variable before it has been resolved.
- exception runway.exceptions.UnresolvedVariableValue[source]¶
Bases:
RunwayError
Intermediary Exception to be converted to UnresolvedVariable.
Should be caught by error handling and
runway.cfngin.exceptions.UnresolvedVariable
raised instead to construct a proper error message.- __init__(lookup: VariableValueLookup, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
lookup – The variable value lookup that is not resolved.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.