---
name: kd-no-empty-catch
description: 禁止空 catch 块
condition: "catch\\s*\\([^)]*\\)\\s*\\{\\s*\\}"
scope: "tool:edit(*.java), tool:write(*.java), tool:edit(*.cs), tool:write(*.cs), tool:edit(*.ts), tool:write(*.ts)"
alwaysApply: false
---

禁止空 catch。至少记录平台日志或向上抛出并保留 cause，禁止吞掉异常。
