> ## 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.

# Session Error Event • AI Agent SDK

> SessionErrorEvent: Session encountered an error.

# SessionErrorEvent

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

AI Agent

Session encountered an error.

Attributes:
error\_message: Human-readable error description.
error\_code: Machine-readable error code (optional).

## Properties

**error\_message** `str`

No description available.

**error\_code** `str`

No description available.

## Source

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

***

## Related Documentation

> [card] [Session Management](https://praison.ai/docs/docs/concepts/session-management)

> [card] [Sessions Feature](https://praison.ai/docs/docs/features/sessions)

> [card] [Session Persistence](https://praison.ai/docs/docs/features/session-persistence)


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