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

# Error

> Error functionality for Components integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/components/error.py)

## [ErrorConfig](/sdk/python/references/logger/components/error)

```python theme={null}
class ErrorConfig(TypedDict)
```

[Error](/sdk/python/references/models/prompt) config.

This class provides functionality to manage error configurations.

## [Error](/sdk/python/references/models/prompt)

```python theme={null}
class Error(BaseContainer)
```

[Error](/sdk/python/references/models/prompt).

This class represents an error event.

#### \_\_init\_\_

```python theme={null}
def __init__(config: ErrorConfig, writer: LogWriter)
```

Initialize the error.

**Arguments**:

| Name     | Type                                                            | Description              |
| -------- | --------------------------------------------------------------- | ------------------------ |
| `config` | *[ErrorConfig](/sdk/python/references/logger/components/error)* | The config of the error. |
| `writer` | *[LogWriter](/sdk/python/references/logger/writer)*             | The writer of the error. |

#### data

```python theme={null}
def data() -> Dict[str, Any]
```

Get the data of the error.

**Returns**:

Dict\[str, Any]: The data of the error.
