# helia_aot.memory.defines.MemoryCapacityError

## helia_aot.memory.defines.MemoryCapacityError

`class` · `python`

```python
MemoryCapacityError(
    message: str,
    *,
    memories: tuple[MemoryType, ...] = (),
    hint: str | None = None,
    details: str | None = None,
) -> None
```

A planner backend ran out of memory: what it had to place fits none of the budgets it tried.

Every out-of-memory failure the bundled planner backends raise is one, so
a caller can tell a memory-size failure from any other rejection and see
which memories ran short without reading the message.

Source: `helia_aot/memory/defines.py:306`

### helia_aot.memory.defines.MemoryCapacityError.memories

`attribute` · `python`

```python
memories = memories
```

The memories whose budgets the failure ran out in, in the
order the backend tried them; empty when not known. Like
``hint`` it is kept in the instance's attributes, so the error
pickles and copies whole, as an error raised in a worker process
must.

Source: `helia_aot/memory/defines.py:333`

### helia_aot.memory.defines.MemoryCapacityError.hint

`attribute` · `python`

```python
hint
```

One next step, such as the setting to change.

Source: `helia_aot/memory/defines/MemoryCapacityError:1`

### helia_aot.memory.defines.MemoryCapacityError.exit_code

`attribute` · `python`

```python
exit_code: int
```

1, as for every ``ConfigValueError`` that is not an
``InvalidConfigError``: a valid request failed while converting.

Source: `helia_aot/memory/defines/MemoryCapacityError:1`
