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

# Catch

## 指令说明

**描述：** 当【尝试执行】区域内的指令发生异常时，进入本区域执行预设的异常处理流程。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/hehnGp4k_n09pm65/helpcenter/commands/others/images/catchcommand-04.png?fit=max&auto=format&n=hehnGp4k_n09pm65&q=85&s=b733ab0880ad7fdc2bec920d5fdb0b0e" alt="Catch指令参数面板" width="664" height="343" data-path="helpcenter/commands/others/images/catchcommand-04.png" />
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/others/images/catchcommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=b5bce79ab16a5459e9b02e815bc83480" alt="Catch使用示例" width="954" height="337" data-path="helpcenter/commands/others/images/catchcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/others/images/catchcommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=e4c2b01938d9cde1b77749fd166d191f" alt="Catch使用示例" width="948" height="170" data-path="helpcenter/commands/others/images/catchcommand-01.png" />

**该流程执行逻辑：**

使用【Try】尝试执行下面的命令

使用【Catch】捕获错误信息，并将错误信息保存到”错误信息“

使用【打印日志】指令打印错误信息

执行【EndTry】结束尝试执行

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
