异常
12114用法规范
-- service 内引入const { BizError, errorInfoEnum } = require('../constant/error');-- 使用throw new BizError(errorInfoEnum.disable_edit_appaId)
异常总览
| 错误码 | 错误原因 |
|---|---|
| data_exception | 数据异常 |
| data_has_loop | 数据出现循环 |
| data_has_multi_root | 数据有多个根节点 |
| data_has_not_root | 数据没有根节点 |
| data_has_children | 数据有子节点,不能删除 |
| data_dont_exists | 数据表不存在 |
| data_expection | 数据异常 |
| album_queryType_error | 查询类型不匹配 |
| article_not_found | 文章找不到 |
| material_is_not_file | 所选素材不是文件类型 |
| path_invalid | 无效的路径 |
| target_file_not_exist | 文件不存在 |
| target_folder_invalid | 粘贴目录不存在 |
| design_article_not_exist | 三稿不存在 |
| no_employee | 没有员工 |
| no_employee_scheme | 员工无社保方案 |
| only_one_month_record | 只有一个月的记录、不能删除 |
| insurance_month_record_not_exist | 社保记录未生成 |
| salary_change_record_exist | 存在未生效工资调薪记录 |
| import_data_not_exist | 无导入数据 |
| import_data_exception | 导入数据异常,请重新检查 |
| no_data | 没有数据 |
| org_exist | 组织已存在 |