# flyte.errors

Exceptions raised by Union.

These errors are raised when the underlying task execution fails, either because of a user error, system error or an
unknown error.
## Directory

### Errors

| Exception | Description |
|-|-|
| [`ActionAbortedError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/actionabortederror/page.md) | This error is raised when an action was aborted, externally. |
| [`ActionNotFoundError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/actionnotfounderror/page.md) | This error is raised when the user tries to access an action that does not exist. |
| [`BaseRuntimeError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/baseruntimeerror/page.md) | Base class for all Union runtime errors. |
| [`CodeBundleError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/codebundleerror/page.md) | This error is raised when the code bundle cannot be created, for example when no files are found to bundle. |
| [`CustomError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/customerror/page.md) | This error is raised when the user raises a custom error. |
| [`DeploymentError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/deploymenterror/page.md) | This error is raised when the deployment of a task fails, or some preconditions for deployment are not met. |
| [`ImageBuildError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/imagebuilderror/page.md) | This error is raised when the image build fails. |
| [`ImagePullBackOffError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/imagepullbackofferror/page.md) | This error is raised when the image cannot be pulled. |
| [`InitializationError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/initializationerror/page.md) | This error is raised when the Union system is tried to access without being initialized. |
| [`InlineIOMaxBytesBreached`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/inlineiomaxbytesbreached/page.md) | This error is raised when the inline IO max bytes limit is breached. |
| [`InvalidImageNameError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/invalidimagenameerror/page.md) | This error is raised when the image name is invalid. |
| [`InvalidPackageError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/invalidpackageerror/page.md) | Raised when an invalid system package is detected during image build. |
| [`LogsNotYetAvailableError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/logsnotyetavailableerror/page.md) | This error is raised when the logs are not yet available for a task. |
| [`ModuleLoadError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/moduleloaderror/page.md) | This error is raised when the module cannot be loaded, either because it does not exist or because of a. |
| [`NonRecoverableError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/nonrecoverableerror/page.md) | Raised when an error is encountered that is not recoverable. |
| [`NotInTaskContextError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/notintaskcontexterror/page.md) | This error is raised when the user tries to access the task context outside of a task. |
| [`OOMError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/oomerror/page.md) | This error is raised when the underlying task execution fails because of an out-of-memory error. |
| [`OnlyAsyncIOSupportedError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/onlyasynciosupportederror/page.md) | This error is raised when the user tries to use sync IO in an async task. |
| [`ParameterMaterializationError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/parametermaterializationerror/page.md) | This error is raised when the user tries to use a Parameter in an App, that has delayed Materialization,. |
| [`PrimaryContainerNotFoundError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/primarycontainernotfounderror/page.md) | This error is raised when the primary container is not found. |
| [`RemoteTaskNotFoundError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/remotetasknotfounderror/page.md) | This error is raised when the user tries to access a task that does not exist. |
| [`RemoteTaskUsageError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/remotetaskusageerror/page.md) | This error is raised when the user tries to access a task that does not exist. |
| [`RestrictedTypeError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/restrictedtypeerror/page.md) | This error is raised when the user uses a restricted type, for example current a Tuple is not supported for one. |
| [`RetriesExhaustedError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/retriesexhaustederror/page.md) | This error is raised when the underlying task execution fails after all retries have been exhausted. |
| [`RuntimeDataValidationError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimedatavalidationerror/page.md) | This error is raised when the user tries to access a resource that does not exist or is invalid. |
| [`RuntimeSystemError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimesystemerror/page.md) | This error is raised when the underlying task execution fails because of a system error. |
| [`RuntimeUnknownError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimeunknownerror/page.md) | This error is raised when the underlying task execution fails because of an unknown error. |
| [`RuntimeUserError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimeusererror/page.md) | This error is raised when the underlying task execution fails because of an error in the user's code. |
| [`SlowDownError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/slowdownerror/page.md) | This error is raised when the user tries to access a resource that does not exist or is invalid. |
| [`TaskInterruptedError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/taskinterruptederror/page.md) | This error is raised when the underlying task execution is interrupted. |
| [`TaskTimeoutError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/tasktimeouterror/page.md) | This error is raised when the underlying task execution runs for longer than the specified timeout. |
| [`TraceDoesNotAllowNestedTasksError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/tracedoesnotallownestedtaskserror/page.md) | This error is raised when the user tries to use a task from within a trace. |
| [`UnionRpcError`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/unionrpcerror/page.md) | This error is raised when communication with the Union server fails. |

### Methods

| Method | Description |
|-|-|
| [`silence_polling_error()`](#silence_polling_error) | Suppress specific polling errors in the event loop. |

## Methods

#### silence_polling_error()

```python
def silence_polling_error(
    loop,
    context,
)
```
Suppress specific polling errors in the event loop.

| Parameter | Type | Description |
|-|-|-|
| `loop` |  | |
| `context` |  | |

## Subpages

- [ActionAbortedError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/actionabortederror/page.md)
  - Parameters
- [ActionNotFoundError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/actionnotfounderror/page.md)
- [BaseRuntimeError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/baseruntimeerror/page.md)
  - Parameters
- [CodeBundleError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/codebundleerror/page.md)
  - Parameters
- [CustomError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/customerror/page.md)
  - Parameters
  - Methods
  - from_exception()
- [DeploymentError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/deploymenterror/page.md)
  - Parameters
- [ImageBuildError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/imagebuilderror/page.md)
  - Parameters
- [ImagePullBackOffError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/imagepullbackofferror/page.md)
  - Parameters
- [InitializationError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/initializationerror/page.md)
  - Parameters
- [InlineIOMaxBytesBreached](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/inlineiomaxbytesbreached/page.md)
  - Parameters
- [InvalidImageNameError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/invalidimagenameerror/page.md)
  - Parameters
- [InvalidPackageError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/invalidpackageerror/page.md)
  - Parameters
- [LogsNotYetAvailableError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/logsnotyetavailableerror/page.md)
  - Parameters
- [ModuleLoadError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/moduleloaderror/page.md)
  - Parameters
- [NonRecoverableError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/nonrecoverableerror/page.md)
  - Parameters
- [NotInTaskContextError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/notintaskcontexterror/page.md)
  - Parameters
- [OnlyAsyncIOSupportedError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/onlyasynciosupportederror/page.md)
  - Parameters
- [OOMError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/oomerror/page.md)
  - Parameters
- [ParameterMaterializationError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/parametermaterializationerror/page.md)
  - Parameters
- [PrimaryContainerNotFoundError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/primarycontainernotfounderror/page.md)
  - Parameters
- [RemoteTaskNotFoundError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/remotetasknotfounderror/page.md)
  - Parameters
- [RemoteTaskUsageError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/remotetaskusageerror/page.md)
  - Parameters
- [RestrictedTypeError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/restrictedtypeerror/page.md)
  - Parameters
- [RetriesExhaustedError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/retriesexhaustederror/page.md)
  - Parameters
- [RuntimeDataValidationError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimedatavalidationerror/page.md)
  - Parameters
- [RuntimeSystemError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimesystemerror/page.md)
  - Parameters
- [RuntimeUnknownError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimeunknownerror/page.md)
  - Parameters
- [RuntimeUserError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/runtimeusererror/page.md)
  - Parameters
- [SlowDownError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/slowdownerror/page.md)
  - Parameters
- [TaskInterruptedError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/taskinterruptederror/page.md)
  - Parameters
- [TaskTimeoutError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/tasktimeouterror/page.md)
  - Parameters
- [TraceDoesNotAllowNestedTasksError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/tracedoesnotallownestedtaskserror/page.md)
  - Parameters
- [UnionRpcError](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/unionrpcerror/page.md)
  - Parameters

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flyte-sdk/packages/flyte.errors/_index.md
**HTML**: https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.errors/
