异常
12123用法规范
-- service 内引入const { BizError, errorInfoEnum } = require('../constant/error');-- 使用throw new BizError(errorInfoEnum.disable_edit_appaId)
异常总览
| 错误码 | 错误原因 |
|---|---|
| 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 | 三稿不存在 |
| user_has_no_course_admin_access_right | 用户没有可管理的课程!请联系系统管理员。 |
| wrong_answer_info | 答案不能为空 |
| 错误码 | 错误原因 |
| --- | --- |
| material_is_not_file | 文件不存在 |
| data_expection | 数据异常 |
| album_queryType_error | 查询类型不匹配 |
| article_not_found | 文章不存在 |
| path_no_permissions | 无文件目录权限 |
| wrong_article_passcode | 密码输入错误! |
| wrong_exam_info | 该场考试不存在! |
| course_not_found | 课程不存在 |
| user_exam_not_exist | 用户考试数据不存在! |
| article_exam_not_publish | 作业题目未发布! |
| user_exam_not_submit | 用户尚未提交考试! |
| 错误码 | 错误原因 |
| --- | --- |
| 错误码 | 错误原因 |
| --- | --- |
| data_dont_exists | 数据表不存在 |
| data_expection | 数据异常 |
| album_queryType_error | 查询类型不匹配 |
| article_not_found | 文章找不到 |
| material_is_not_file | 所选素材不是文件类型 |
| path_invalid | 无效的路径 |
| target_file_not_exist | 文件不存在 |
| target_folder_invalid | 粘贴目录不存在 |
| has_no_permission | 无权限查看 |