---
title: "ErrorEvent"
---

Event emitted when an error occurs during streaming


## Fields

| Field                                                        | Type                                                         | Required                                                     | Description                                                  |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `code`                                                       | *Nullable[str]*                                              | :heavy_check_mark:                                           | N/A                                                          |
| `message`                                                    | *str*                                                        | :heavy_check_mark:                                           | N/A                                                          |
| `param`                                                      | *Nullable[str]*                                              | :heavy_check_mark:                                           | N/A                                                          |
| `sequence_number`                                            | *int*                                                        | :heavy_check_mark:                                           | N/A                                                          |
| `type`                                                       | [components.ErrorEventType](../components/erroreventtype.mdx) | :heavy_check_mark:                                           | N/A                                                          |