roses/kernel-a-rule/README.md

19 lines
540 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

整个框架每个模块需要遵守的规范
每个开发人员也需要遵守的规范
## 业务异常统一用ServiceException类
## 每个模块的异常枚举要在exception.enums包下维护
## 异常枚举分三类
异常分为三类第一类用户操作异常的枚举以UserExceptionEnum结尾
第二类是系统业务逻辑异常枚举以BusinessExceptionEnum结尾
第三类是第三方调用异常枚举以ThirdExceptionEnum结尾
## 每个模块设立独立的模块异常,方便区分各个模块的异常