---
title: ResultEncodingError
sidebar_label: ResultEncodingError
sidebar_position: 1
---

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

<!-- Generated by scripts/generate_sdk_reference.py. Do not edit directly. -->

# ResultEncodingError

```python
from lium.sdk import ResultEncodingError
```

Defined in `lium.sdk.result_codec`.

The function's result holds a value that does not travel back from the pod.

Raised on the pod before the result file is written; the message names the type and its place in
the result. The caller re-raises it with the same message.

```python
ResultEncodingError(*args, **kwargs)
```

## Catching it

`ResultEncodingError` subclasses `TypeError` → `Exception`, so a handler for any of those also catches it.

```python
from lium.sdk import ResultEncodingError

try:
    ...  # any SDK call
except ResultEncodingError as e:
    print(e)
```
