异常

12111

用法规范

  1. -- service 内引入
  2. const { BizError, errorInfoEnum } = require('../constant/error');
  3. -- 使用
  4. 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 存在未生效工资调薪记录