Skip to content

prefect_kubernetes.exceptions

Module to define common exceptions within prefect_kubernetes.

Classes

KubernetesJobDefinitionError

Bases: OpenApiException

An exception for when a Kubernetes job definition is invalid.

Source code in prefect_kubernetes/exceptions.py
6
7
class KubernetesJobDefinitionError(OpenApiException):
    """An exception for when a Kubernetes job definition is invalid."""

KubernetesJobFailedError

Bases: OpenApiException

An exception for when a Kubernetes job fails.

Source code in prefect_kubernetes/exceptions.py
10
11
class KubernetesJobFailedError(OpenApiException):
    """An exception for when a Kubernetes job fails."""

KubernetesJobTimeoutError

Bases: OpenApiException

An exception for when a Kubernetes job times out.

Source code in prefect_kubernetes/exceptions.py
18
19
class KubernetesJobTimeoutError(OpenApiException):
    """An exception for when a Kubernetes job times out."""

KubernetesResourceNotFoundError

Bases: ApiException

An exception for when a Kubernetes resource cannot be found by a client.

Source code in prefect_kubernetes/exceptions.py
14
15
class KubernetesResourceNotFoundError(ApiException):
    """An exception for when a Kubernetes resource cannot be found by a client."""