wangrong
10 天以前 c4d7079ac30b4ed0393c2dc831627825c7a545d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
description: 异常处理(Exception)
globs: 
---
# 异常处理
 
框架自带有: `CoolCommException`
 
## 通用异常
 
CoolCommException
 
返回码: 1001
 
返回消息:comm fail
 
用法:
 
```ts
// 可以自定义返回消息
throw new CoolCommException('用户不存在~');
```