2025-02-09 21:02:47 +08:00

22 lines
290 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: 异常处理(Exception)
globs:
---
# 异常处理
框架自带有: `CoolCommException`
## 通用异常
CoolCommException
返回码: 1001
返回消息comm fail
用法:
```ts
// 可以自定义返回消息
throw new CoolCommException('用户不存在~');
```