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

# XError members

> XError members

# XError members

Game OS 和游戏运行时 API 通过 XError API 向游戏开发人员表达异常错误情况。此 API 让开发人员能够控制他们希望如何处理或忽略异常错误情况。

## 函数

| 函数                                                                        | 说明                         |
| ------------------------------------------------------------------------- | -------------------------- |
| [XErrorCallback](/reference/system/xerror/functions/xerrorcallback)       | 如果游戏 OS 或游戏运行时出现错误，则调用的回调。 |
| [XErrorSetCallback](/reference/system/xerror/functions/xerrorsetcallback) | 指定游戏 OS 或游戏运行时出现错误时调用的回调。  |
| [XErrorSetOptions](/reference/system/xerror/functions/xerrorsetoptions)   | 指定游戏 OS 或游戏运行时出现错误时的所需行为。  |

## 枚举

| 枚举                                                            | 说明                           |
| ------------------------------------------------------------- | ---------------------------- |
| [XErrorOptions](/reference/system/xerror/enums/xerroroptions) | 描述当游戏 OS 或游戏运行时出现错误时游戏应如何行为。 |


## Related topics

- [XErrorOptions](/zh-CN/reference/system/xerror/enums/xerroroptions.md)
- [XErrorCallback](/zh-CN/reference/system/xerror/functions/xerrorcallback.md)
- [XErrorSetCallback](/zh-CN/reference/system/xerror/functions/xerrorsetcallback.md)
- [XErrorSetOptions](/zh-CN/reference/system/xerror/functions/xerrorsetoptions.md)
- [XMemSetOption](/zh-CN/reference/system/xmem/functions/xmemsetoption.md)
