> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/flow-logic/stop-and-error.md).

# 在 Duaer 里用 Stop and Error 主动判失败

在 Duaer 里，Stop and Error 会停住这次执行并记成错误。后面的节点不会再跑。可用来触发错误数字组织。
## 在条件后面接上

1. 在 If 的 false 出口，或任何你认为必须失败的步骤后面，加上 Stop and Error。
2. Error Type 选 Error Message，在 Error Message 里写清楚原因。
3. 也可以选 Error Object，填一段 JSON。
4. 执行此步骤或跑整条。执行记录里状态是错误，后面的节点不会继续。

生产执行失败时，若设置了错误数字组织，Error Trigger 会收到这次失败。见 [在 Duaer 里妥善处理错误](/zh/flow-logic/error-handling.md)。

节点上的 On Error（停住、继续、走错误出口）管的是这一步自己失败时怎么走，和 Stop and Error 主动判失败不是同一件事。
## Questions

### Duaer 画布上试跑时点了 Stop and Error，错误数字组织会启动吗？

不会。手动试跑失败不会启动 Error Trigger。只有生产执行失败才会。

