# _05_ Exceptions
12126Usage Specification
-- Import within the service
const { BizError, errorInfoEnum } = require('../constant/error');
-- Usage
throw new BizError(errorInfoEnum.disable_edit_appaId)Exception Overview
| Error Code | Error Reason |
|---|---|
| resource_forbidden | No execution permission |
| socket_connect_success | Connection successful |
| socket_authentication_failed | Authentication failed |
| no_update_option | No options to modify |
| data_not_found | Data mismatch |
| data_not_found | Data contains multiple entries |
| data_not_found | Data does not exist |
| request_user_not_exist | User does not exist |
| user_password_error | Username or password is incorrect, please re-enter! |
| user_banned | Account has been banned! Please contact the administrator. |
| user_status_error | User status is abnormal! |
| user_password_reset_old_error | Old password is incorrect, please re-enter! |
| user_password_reset_same_error | New and old passwords cannot be the same, please re-enter! |
| chat_user_not_exist | User does not exist |
| chat_already_room_user | Already a group member |
| chat_owner_cannot_exit | The group owner cannot exit directly |
| chat_already_friend | Already in a friendship |
| chat_not_user_friend | Not in a friendship |
| chat_already_reject | Already rejected |
| chat_room_not_found | Group does not exist |
| chat_user_not_in_room | User is not in the group |
| chat_user_is_baned_in_room | User is muted |
| chat_room_user_cant_not_set | You cannot modify the current group user data |
| chat_can_not_operate_room_owner | Cannot perform this operation on the group owner |
| chat_can_not_operate_room_admin | Cannot perform this operation on the group admin |
| chat_please_select_user | Please select a user |
| chat_message_not_found | Message does not exist |
| chat_message_forbidden | No execution permission (message) |
| chat_can_not_add_yourself | Cannot add yourself as a friend |
| chat_had_assigned_to_other_agent | This visitor is already being attended to by another customer service representative |
| xiaochengxu_not_found | Mini program is currently unavailable |
| xiaochengxu_not_online | Mini program is offline |