# 错误处理模式评审

> 评审错误处理中的异常吞没、信息泄漏与契约不清。

**Kind:** skill · **Domain:** Engineering · **ID:** `tech-error-handling-patterns`

## 输入输出契约

| 输入 | 输出 |
| --- | --- |
| 代码库片段、错误类型、日志配置、API 错误契约 | 反模式发现、标准化错误模型、处理示例 |

## 工作流程与操作说明


2. Find swallowed exceptions and overly broad catch blocks.
4. Check that errors are logged with context but without secrets.
6. Verify a consistent API error contract.
8. Define a small set of typed application errors.
10. Show before-and-after handling for the top findings.



## 起手提示词

```text
评审这个服务的错误处理并提出标准错误模型。
```

## 常见问题

### 这是一项真实存在于 Clavue Bot 的能力吗？

是的。本页内容由产品内置目录生成，能力名称、输入输出与操作步骤都对应真实可用的场景、技能、MCP 工具或数字员工。

### 需要额外配置工具或连接器吗？

标注「开箱即用」的能力无需额外工具；标注「需连接工具」的能力会列出所需连接器，首次运行时按提示授权即可。

### 它会未经确认就发邮件或付款吗？

不会。发信、付款、提交表单等对外动作会停下来先请你确认，你同意后才会继续。

Canonical: https://ability.clavue.com/zh/skill/tech-error-handling-patterns/
