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

# Error Event • Rust AI Agent SDK

> error_event: Create an error event

# error\_event

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**StreamEvent**](../classes/StreamEvent) class in the [**streaming**](../modules/streaming) module.

Create an error event

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def error_event(message: impl Into<String>) -> Self
```

## Parameters

<ParamField query="message" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Error Handling" icon="triangle-exclamation" href="/docs/rust/error-handling" />

  <Card title="Rust Retry" icon="rotate-right" href="/docs/rust/retry" />

  <Card title="Rust Failover" icon="shield" href="/docs/rust/failover" />
</CardGroup>
