From dee2217c8ceb27eb14ee6ee1e561b6d108b335b5 Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:54:54 +0800 Subject: [PATCH] chore: .cursor/rules/exception.mdc --- .cursor/rules/exception.mdc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .cursor/rules/exception.mdc diff --git a/.cursor/rules/exception.mdc b/.cursor/rules/exception.mdc new file mode 100644 index 0000000..dcb1a28 --- /dev/null +++ b/.cursor/rules/exception.mdc @@ -0,0 +1,22 @@ +--- +description: 异常处理(Exception) +globs: +--- +# 异常处理 + +框架自带有: `CoolCommException` + +## 通用异常 + +CoolCommException + +返回码: 1001 + +返回消息:comm fail + +用法: + +```ts +// 可以自定义返回消息 +throw new CoolCommException('用户不存在~'); +``` \ No newline at end of file