Exceptions
This script defines the exceptions used in the ankaios_sdk module.
All the exceptions are derived from the AnkaiosException class.
Exceptions
AnkaiosException: Base exception.
WorkloadFieldException: Raised when the workload field is invalid.
WorkloadBuilderException: Raised when the workload builder is invalid.
InvalidManifestException: Raised when the manifest file is invalid.
ConnectionClosedException: Raised when the connection is closed.
RequestException: Raised when the request is invalid.
ResponseException: Raised when the response is invalid.
ControlInterfaceException: Raised when an operation fails.
AnkaiosProtocolException: Raised when something unexpected is received.
AnkaiosResponseError: Raised when the response from Ankaios is an error.
- exception ankaios_sdk.exceptions.AnkaiosException[source]
Bases:
Exception
Base class for exceptions in this module.
- exception ankaios_sdk.exceptions.WorkloadFieldException(field, value, accepted_values)[source]
Bases:
AnkaiosException
Raised when the workload field is invalid
- exception ankaios_sdk.exceptions.WorkloadBuilderException[source]
Bases:
AnkaiosException
Raised when the workload builder is invalid.
- exception ankaios_sdk.exceptions.InvalidManifestException[source]
Bases:
AnkaiosException
Raised when the manifest file is invalid.
- exception ankaios_sdk.exceptions.ConnectionClosedException[source]
Bases:
AnkaiosException
Raised when the connection is closed.
- exception ankaios_sdk.exceptions.RequestException[source]
Bases:
AnkaiosException
Raised when the request is invalid.
- exception ankaios_sdk.exceptions.ResponseException[source]
Bases:
AnkaiosException
Raised when the response is invalid.
- exception ankaios_sdk.exceptions.ControlInterfaceException[source]
Bases:
AnkaiosException
Raised when an operation on the Control Interface fails
- exception ankaios_sdk.exceptions.AnkaiosProtocolException(message)[source]
Bases:
AnkaiosException
Raised when something unexpected is received
- exception ankaios_sdk.exceptions.AnkaiosResponseError[source]
Bases:
AnkaiosException
Raised when the response from Ankaios is an error