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

# On Error Input • AI Agent SDK

> OnErrorInput: Input for OnError hooks.

# OnErrorInput

> Defined in the [**events**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/events.md) module.

AI Agent

Input for OnError hooks.

## Properties

**error\_type** `str`

No description available.

**error\_message** `str`

No description available.

**stack\_trace** `Optional[str]`

No description available.

**context** `Dict[str, Any]`

No description available.

> [accordion] Internal & Generic Methods
>
> * **to\_dict**: Generic utility method.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/events.py#L244)
>
> `praisonaiagents/hooks/events.py` at line 244


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.