> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# exceptions

# `prefect_kubernetes.exceptions`

Module to define common exceptions within `prefect_kubernetes`.

## Classes

### `KubernetesJobDefinitionError` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/exceptions.py#L6](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/exceptions.py#L6)</sup>

An exception for when a Kubernetes job definition is invalid.

### `KubernetesJobFailedError` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/exceptions.py#L10](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/exceptions.py#L10)</sup>

An exception for when a Kubernetes job fails.

### `KubernetesResourceNotFoundError` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/exceptions.py#L14](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/exceptions.py#L14)</sup>

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

### `KubernetesJobTimeoutError` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect\_kubernetes/exceptions.py#L18](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-kubernetes/prefect_kubernetes/exceptions.py#L18)</sup>

An exception for when a Kubernetes job times out.
