异常
12114用法规范
-- service 内引入const { BizError, errorInfoEnum } = require('../constant/error');-- 使用throw new BizError(errorInfoEnum.disable_edit_appaId)
异常总览
| 错误码 | 错误原因 |
|---|---|
| data_exception | 数据异常 |
| bill_exist | 账单已存在 |
| bill_batch_not_exist | 账单批次不存在 |
| student_not_exist | 学生不存在 |
| student_not_matched | 未匹配到学生,请修改批次配置 |
| bill_not_exist | 账单不存在 |
| amount_needs_to_be_greater_than_0 | 金额需大于0 |
| need_paid_not_match_paid | 待缴费金额与缴费金额不匹配 |
| semester_scholarship_amount_is_not_enough | 预算金额验证错误 |
| current_semester_unconfigured | 未配置当前学年学期 |
| bill_generate_completed | 已结束生成账单 |
| import_data_not_exist | 无导入数据 |
| import_data_exception | 导入数据异常,请重新检查 |