1 /* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OS_ACCOUNT_FRAMEWORKS_COMMON_ACCOUNT_ERROR_INCLUDE_ACCOUNT_ERROR_NO_H 17 #define OS_ACCOUNT_FRAMEWORKS_COMMON_ACCOUNT_ERROR_INCLUDE_ACCOUNT_ERROR_NO_H 18 19 #include <stdint.h> 20 #include "errors.h" 21 22 namespace OHOS { 23 enum { 24 ACCOUNT_MODULE_COMMON = 0x00, 25 ACCOUNT_MODULE_ACCOUNTMGR, 26 ACCOUNT_MODULE_DATADEAL, 27 ACCOUNT_MODULE_IACCOUNT, 28 ACCOUNT_MODULE_APPACCOUNT_KIT, 29 ACCOUNT_MODULE_APPACCOUNT_SERVICE, 30 ACCOUNT_MODULE_OSACCOUNT_KIT, 31 ACCOUNT_MODULE_OSACCOUNT_SERVICE, 32 ACCOUNT_MODULE_ACCOUNT_IAM_KIT, 33 ACCOUNT_MODULE_ACCOUNT_IAM_SERVICE, 34 ACCOUNT_MODULE_OHOSACCOUNT_KIT, 35 ACCOUNT_MODULE_OHOSACCOUNT_SERVICE, 36 ACCOUNT_MODULE_DOMAIN_ACCOUNT_SERVICE 37 }; 38 39 // Error code for common 40 constexpr ErrCode ACCOUNT_COMMON_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_COMMON); 41 enum { 42 ERR_ACCOUNT_COMMON_NOT_INIT_ERROR = ACCOUNT_COMMON_ERR_OFFSET + 0x0001, 43 ERR_ACCOUNT_COMMON_DUMP_JSON_ERROR, 44 ERR_ACCOUNT_COMMON_INSUFFICIENT_MEMORY_ERROR, 45 ERR_ACCOUNT_COMMON_NULL_PTR_ERROR, 46 ERR_ACCOUNT_COMMON_WRITE_DESCRIPTOR_ERROR, 47 ERR_ACCOUNT_COMMON_CHECK_DESCRIPTOR_ERROR, 48 ERR_ACCOUNT_COMMON_CHECK_KVSTORE_ERROR, 49 ERR_ACCOUNT_COMMON_DELETE_KEY_FROM_KVSTORE_ERROR, 50 ERR_ACCOUNT_COMMON_BAD_JSON_FORMAT_ERROR, 51 ERR_ACCOUNT_COMMON_CONNECT_ABILITY_MANAGER_SERVICE_ERROR, 52 ERR_ACCOUNT_COMMON_INTERFACE_NOT_SUPPORT_ERROR, 53 ERR_ACCOUNT_COMMON_CONNECT_BUNDLE_MANAGER_SERVICE_ERROR, 54 ERR_ACCOUNT_COMMON_GET_SYSTEM_ABILITY_MANAGER, 55 ERR_ACCOUNT_COMMON_GET_SYSTEM_ABILITY, 56 ERR_ACCOUNT_COMMON_GET_PROXY, 57 ERR_ACCOUNT_COMMON_CREATE_DEATH_RECIPIENT, 58 ERR_ACCOUNT_COMMON_ADD_DEATH_RECIPIENT, 59 ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, 60 ERR_ACCOUNT_COMMON_READ_PARCEL_ERROR, 61 ERR_ACCOUNT_COMMON_INVALID_PARAMTER, 62 ERR_ACCOUNT_COMMON_POST_TASK, 63 ERR_ACCOUNT_COMMON_FILE_OPEN_FAILED, 64 ERR_ACCOUNT_COMMON_FILE_WRITE_FAILED 65 }; 66 67 // Error code for AccountMgr 68 constexpr ErrCode ACCOUNT_ACCOUNTMGR_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_ACCOUNTMGR); 69 enum { 70 ERR_ACCOUNT_MGR_DUMP_ERROR = ACCOUNT_ACCOUNTMGR_ERR_OFFSET + 0x0001, 71 ERR_ACCOUNT_MGR_GET_REMOTE_SA_ERROR, 72 ERR_ACCOUNT_MGR_CONNECT_SA_ERROR, 73 ERR_ACCOUNT_MGR_ADD_TO_SA_ERROR, 74 ERR_ACCOUNT_MGR_OHOS_MGR_INIT_ERROR 75 }; 76 77 // Error code for DataDeal module 78 constexpr ErrCode ACCOUNT_DATADEAL_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_DATADEAL); 79 enum { 80 ERR_ACCOUNT_DATADEAL_INPUT_FILE_ERROR = ACCOUNT_DATADEAL_ERR_OFFSET + 0x0001, 81 ERR_ACCOUNT_DATADEAL_FILE_PARSE_FAILED, 82 ERR_ACCOUNT_DATADEAL_DIGEST_ERROR, 83 ERR_ACCOUNT_DATADEAL_FILE_WRITE_FAILED, 84 ERR_ACCOUNT_DATADEAL_JSON_KEY_NOT_EXIST, 85 ERR_ACCOUNT_DATADEAL_NOT_READY, 86 ERR_ACCOUNT_DATADEAL_JSON_FILE_CORRUPTION 87 }; 88 89 // Error code for IAccount 90 constexpr ErrCode ACCOUNT_IACCOUNT_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_IACCOUNT); 91 enum { 92 ERR_ACCOUNT_ZIDL_ACCOUNT_INFO_CHECK_ERROR = ACCOUNT_IACCOUNT_ERR_OFFSET + 0x0001, 93 ERR_ACCOUNT_ZIDL_WRITE_DESCRIPTOR_ERROR, 94 ERR_ACCOUNT_ZIDL_READ_RESULT_ERROR, 95 ERR_ACCOUNT_ZIDL_WRITE_RESULT_ERROR, 96 ERR_ACCOUNT_ZIDL_ACCOUNT_PROXY_ERROR, 97 ERR_ACCOUNT_ZIDL_ACCOUNT_STUB_ERROR, 98 ERR_ACCOUNT_ZIDL_ACCOUNT_SERVICE_ERROR, 99 ERR_ACCOUNT_ZIDL_ACCOUNT_SEND_REQUEST_ERROR, 100 ERR_ACCOUNT_ZIDL_WRITE_NAME_ERROR, 101 ERR_ACCOUNT_ZIDL_WRITE_UID_ERROR, 102 ERR_ACCOUNT_ZIDL_WRITE_ACCOUNT_STATUS_ERROR, 103 ERR_ACCOUNT_ZIDL_MGR_NOT_READY_ERROR, 104 ERR_ACCOUNT_ZIDL_CHECK_PERMISSION_ERROR, 105 ERR_ACCOUNT_ZIDL_WRITE_PARCEL_DATA_ERROR, 106 ERR_ACCOUNT_ZIDL_INVALID_RESULT_ERROR, 107 ERR_ACCOUNT_ZIDL_ACCOUNT_STUB_USERID_ERROR 108 }; 109 110 // Error code for APPACCOUNT_KIT 111 constexpr ErrCode APPACCOUNT_KIT_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_APPACCOUNT_KIT); 112 enum { 113 // AppAccount::GetAppAccountProxy 4456449 114 ERR_APPACCOUNT_KIT_GET_SYSTEM_ABILITY_MANAGER = APPACCOUNT_KIT_ERR_OFFSET + 0x0001, 115 ERR_APPACCOUNT_KIT_GET_ACCOUNT_SYSTEM_ABILITY, 116 ERR_APPACCOUNT_KIT_CAST_ACCOUNT_PROXY, 117 ERR_APPACCOUNT_KIT_GET_APP_ACCOUNT_SERVICE, 118 ERR_APPACCOUNT_KIT_GET_APP_ACCOUNT_PROXY, 119 ERR_APPACCOUNT_KIT_CREATE_APP_ACCOUNT_DEATH_RECIPIENT, 120 // AppAccount 4456455 121 ERR_APPACCOUNT_KIT_NAME_IS_EMPTY, 122 ERR_APPACCOUNT_KIT_NAME_OUT_OF_RANGE, 123 ERR_APPACCOUNT_KIT_NAME_CONTAINS_SPECIAL_CHARACTERS, 124 ERR_APPACCOUNT_KIT_EXTRA_INFO_OUT_OF_RANGE, 125 ERR_APPACCOUNT_KIT_AUTHORIZED_APP_IS_EMPTY, 126 ERR_APPACCOUNT_KIT_AUTHORIZED_APP_OUT_OF_RANGE, 127 ERR_APPACCOUNT_KIT_ASSOCIATED_KEY_IS_EMPTY, 128 ERR_APPACCOUNT_KIT_ASSOCIATED_KEY_OUT_OF_RANGE, 129 ERR_APPACCOUNT_KIT_ASSOCIATED_VALUE_OUT_OF_RANGE, 130 ERR_APPACCOUNT_KIT_CREDENTIAL_TYPE_IS_EMPTY, 131 ERR_APPACCOUNT_KIT_CREDENTIAL_TYPE_OUT_OF_RANGE, 132 ERR_APPACCOUNT_KIT_CREDENTIAL_OUT_OF_RANGE, 133 ERR_APPACCOUNT_KIT_TOKEN_OUT_OF_RANGE, 134 ERR_APPACCOUNT_KIT_OWNER_IS_EMPTY, 135 ERR_APPACCOUNT_KIT_OWNER_OUT_OF_RANGE, 136 ERR_APPACCOUNT_KIT_AUTH_TYPE_OUT_OF_RANGE, 137 ERR_APPACCOUNT_KIT_SUBSCRIBER_HAS_NO_OWNER, 138 ERR_APPACCOUNT_KIT_INVALID_PARAMETER, 139 ERR_APPACCOUNT_KIT_SUBSCRIBER_IS_NULLPTR, 140 ERR_APPACCOUNT_KIT_GET_SUBSCRIBE_INFO, 141 ERR_APPACCOUNT_KIT_GET_OWNERS, 142 ERR_APPACCOUNT_KIT_SET_OWNERS, 143 ERR_APPACCOUNT_KIT_APP_ACCOUNT_PROXY_IS_NULLPTR, 144 ERR_APPACCOUNT_KIT_SUBSCRIBE, 145 ERR_APPACCOUNT_KIT_NO_SPECIFIED_SUBSCRIBER_HAS_BEEN_REGISTERED, 146 // AppAccountProxy & AppAccountEventProxy 4456480 147 ERR_APPACCOUNT_KIT_WRITE_STRING_NAME, 148 ERR_APPACCOUNT_KIT_WRITE_STRING_OWNER, 149 ERR_APPACCOUNT_KIT_WRITE_STRING_EXTRA_INFO, 150 ERR_APPACCOUNT_KIT_WRITE_STRING_AUTHORIZED_APP, 151 ERR_APPACCOUNT_KIT_WRITE_STRING_KEY, 152 ERR_APPACCOUNT_KIT_WRITE_STRING_VALUE, 153 ERR_APPACCOUNT_KIT_WRITE_BOOL_SYNC_ENABLE, 154 ERR_APPACCOUNT_KIT_WRITE_BOOL_VISIBILITY, 155 ERR_APPACCOUNT_KIT_WRITE_STRING_ASSOCIATED_KEY, 156 ERR_APPACCOUNT_KIT_WRITE_STRING_CREDENTIAL_TYPE, 157 ERR_APPACCOUNT_KIT_WRITE_STRING_CREDENTIAL, 158 ERR_APPACCOUNT_KIT_WRITE_STRING_TOKEN, 159 ERR_APPACCOUNT_KIT_WRITE_STRING_AUTH_TYPE, 160 ERR_APPACCOUNT_KIT_WRITE_STRING_BUNDLE_NAME, 161 ERR_APPACCOUNT_KIT_WRITE_STRING_ABILITY_NAME, 162 ERR_APPACCOUNT_KIT_WRITE_STRING_SESSION_ID, 163 ERR_APPACCOUNT_KIT_WRITE_STRING_VECTOR, 164 ERR_APPACCOUNT_KIT_WRITE_PARCELABLE_SUBSCRIBE_INFO, 165 ERR_APPACCOUNT_KIT_WRITE_PARCELABLE_EVENT_LISTENER, 166 ERR_APPACCOUNT_KIT_WRITE_PARCELABLE_OPTIONS, 167 ERR_APPACCOUNT_KIT_WRITE_PARCELABLE_CALLBACK, 168 ERR_APPACCOUNT_KIT_REMOTE_IS_NULLPTR, 169 ERR_APPACCOUNT_KIT_SEND_REQUEST, 170 ERR_APPACCOUNT_KIT_READ_PARCELABLE_APP_ACCOUNT_INFO, 171 // AppAccountStub 4456503 172 ERR_APPACCOUNT_KIT_READ_STRING_NAME, 173 ERR_APPACCOUNT_KIT_READ_STRING_OWNER, 174 ERR_APPACCOUNT_KIT_READ_STRING_AUTHORIZED_APP, 175 ERR_APPACCOUNT_KIT_READ_STRING_ASSOCIATED_DATA, 176 ERR_APPACCOUNT_KIT_READ_STRING_CREDENTIAL_TYPE, 177 // AppAccountEventStub 178 ERR_APPACCOUNT_KIT_READ_PARCELABLE_VECTOR_ACCOUNT_INFO, 179 }; 180 181 // Error code for APPACCOUNT_SERVICE 182 constexpr ErrCode APPACCOUNT_SERVICE_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_APPACCOUNT_SERVICE); 183 enum { 184 // 4521985 185 ERR_APPACCOUNT_SERVICE_NAME_IS_EMPTY = APPACCOUNT_SERVICE_ERR_OFFSET + 0x0001, 186 ERR_APPACCOUNT_SERVICE_NAME_OUT_OF_RANGE, 187 ERR_APPACCOUNT_SERVICE_NAME_INVALID, 188 ERR_APPACCOUNT_SERVICE_EXTRA_INFO_OUT_OF_RANGE, 189 ERR_APPACCOUNT_SERVICE_OWNERS_ARE_EMPTY, 190 ERR_APPACCOUNT_SERVICE_PERMISSION_NAME_IS_EMPTY, 191 ERR_APPACCOUNT_SERVICE_BUNDLE_NAME_IS_EMPTY, 192 ERR_APPACCOUNT_SERVICE_BUNDLE_NAME_IS_THE_SAME, 193 ERR_APPACCOUNT_SERVICE_INVALID_PARAMETER, 194 ERR_APPACCOUNT_SERVICE_ACCOUNT_NOT_EXIST, 195 ERR_APPACCOUNT_SERVICE_PERMISSION_DENIED, 196 // InnerAppAccountManager 4521995 197 ERR_APPACCOUNT_SERVICE_CONTROL_MANAGER_PTR_IS_NULLPTR, 198 ERR_APPACCOUNT_SERVICE_SUBSCRIBE_MANAGER_PTR_IS_NULLPTR, 199 ERR_APPACCOUNT_SERVICE_SESSION_MANAGER_PTR_IS_NULLPTR, 200 ERR_APPACCOUNT_SERVICE_AUTHENTICATOR_MANAGER_PTR_IS_NULLPTR, 201 // AppAccountControlManager 4521999 202 ERR_APPACCOUNT_SERVICE_CREATE_EVENT_HANDLER, 203 ERR_APPACCOUNT_SERVICE_DATA_STORAGE_PTR_IS_NULLPTR, 204 ERR_APPACCOUNT_SERVICE_ACCOUNT_MAX_SIZE, 205 ERR_APPACCOUNT_SERVICE_GET_ACCOUNT_INFO_BY_ID, 206 ERR_APPACCOUNT_SERVICE_GET_ACCOUNT_INFO_BY_OWNER, 207 ERR_APPACCOUNT_SERVICE_GET_SYNC_ENABLE, 208 ERR_APPACCOUNT_SERVICE_GET_ASSOCIATED_DATA, 209 ERR_APPACCOUNT_SERVICE_SET_ASSOCIATED_DATA, 210 ERR_APPACCOUNT_SERVICE_ACCOUNT_CREDENTIAL_NOT_EXIST, 211 ERR_APPACCOUNT_SERVICE_SET_ACCOUNT_CREDENTIAL, 212 ERR_APPACCOUNT_SERVICE_ADD_ACCOUNT_INFO, 213 ERR_APPACCOUNT_SERVICE_SAVE_ACCOUNT_INFO, 214 ERR_APPACCOUNT_SERVICE_REMOVE_INFO_BY_KEY, 215 ERR_APPACCOUNT_SERVICE_GET_EXTRA_INFO, 216 ERR_APPACCOUNT_SERVICE_SET_EXTRA_INFO, 217 ERR_APPACCOUNT_SERVICE_GET_OWNER, 218 ERR_APPACCOUNT_SERVICE_GET_BUNDLE_NAME, 219 ERR_APPACCOUNT_SERVICE_GET_APP_INDEX, 220 ERR_APPACCOUNT_SERVICE_GET_BUNDLE_INFO, 221 ERR_APPACCOUNT_SERVICE_GET_AUTHORIZED_APPS, 222 ERR_APPACCOUNT_SERVICE_ADD_EXISTING_ACCOUNT, 223 ERR_APPACCOUNT_SERVICE_ENABLE_APP_ACCESS_ALREADY_EXISTS, 224 ERR_APPACCOUNT_SERVICE_DISABLE_APP_ACCESS_NOT_EXISTED, 225 ERR_APPACCOUNT_SERVICE_GET_ACCOUNT_CACHE, 226 ERR_APPACCOUNT_SERVICE_ASSOCIATED_DATA_KEY_NOT_EXIST, 227 ERR_APPACCOUNT_SERVICE_ASSOCIATED_DATA_OVER_SIZE, 228 // AppAccountOAuth 229 ERR_APPACCOUNT_SERVICE_OAUTH_TOKEN_NOT_EXIST, 230 ERR_APPACCOUNT_SERVICE_OAUTH_TYPE_NOT_EXIST, 231 ERR_APPACCOUNT_SERVICE_OAUTH_TOKEN_MAX_SIZE, 232 ERR_APPACCOUNT_SERVICE_OAUTH_LIST_MAX_SIZE, 233 ERR_APPACCOUNT_SERVICE_OAUTH_AUTHENTICATOR_NOT_EXIST, 234 ERR_APPACCOUNT_SERVICE_OAUTH_AUTHENTICATOR_CALLBACK_NOT_EXIST, 235 ERR_APPACCOUNT_SERVICE_OAUTH_SESSION_NOT_EXIST, 236 ERR_APPACCOUNT_SERVICE_OAUTH_BUSY, 237 ERR_APPACCOUNT_SERVICE_OAUTH_INVALID_RESPONSE, 238 ERR_APPACCOUNT_SERVICE_OAUTH_SERVICE_EXCEPTION, 239 // AppAccountSubscribeManager 4522034 240 ERR_APPACCOUNT_SERVICE_SUBSCRIBE_INFO_PTR_IS_NULLPTR, 241 ERR_APPACCOUNT_SERVICE_EVENT_LISTENER_IS_NULLPTR, 242 ERR_APPACCOUNT_SERVICE_GET_OWNERS, 243 ERR_APPACCOUNT_SERVICE_OWNERS_SIZE_IS_ZERO, 244 ERR_APPACCOUNT_SERVICE_SUBSCRIBE_RECORD_PTR_IS_NULLPTR, 245 ERR_APPACCOUNT_SERVICE_SUBSCRIBE_PERMISSION_DENIED, 246 ERR_APPACCOUNT_SUBSCRIBER_ALREADY_REGISTERED, 247 ERR_APPACCOUNT_SERVICE_WRITE_PARCEL, 248 ERR_APPACCOUNT_SERVICE_OTHER, 249 }; 250 251 // Error code for OSACCOUNT_KIT 252 constexpr ErrCode ACCOUNT_OSACCOUNT_KIT_ERR_OFFSET = ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_OSACCOUNT_KIT); 253 enum { 254 // 4587521 255 ERR_OSACCOUNT_KIT_WRITE_LOCALNAME_ERROR = ACCOUNT_OSACCOUNT_KIT_ERR_OFFSET + 0x0001, 256 ERR_OSACCOUNT_KIT_WRITE_OSACCOUNT_TYPE_ERROR, 257 ERR_OSACCOUNT_KIT_CREATE_OS_ACCOUNT_ERROR, 258 ERR_OSACCOUNT_KIT_CREATE_OS_ACCOUNT_FOR_DOMAIN_ERROR, 259 ERR_OSACCOUNT_KIT_WRITE_DOMAIN_ERROR, 260 ERR_OSACCOUNT_KIT_WRITE_DOMAIN_ACCOUNT_NAME_ERROR, 261 ERR_OSACCOUNT_KIT_WRITE_INT_LOCAL_ID_ERROR, 262 ERR_OSACCOUNT_KIT_READ_LOCALNAME_ERROR, 263 ERR_OSACCOUNT_KIT_REMOVE_OSACCOUNT_ERROR, 264 ERR_OSACCOUNT_KIT_READ_OSACCOUNT_TYPE_ERROR, 265 ERR_OSACCOUNT_KIT_WRITE_REPLY_ERROR, 266 ERR_OSACCOUNT_KIT_READ_IN_LOCAL_ID_ERROR, 267 ERR_OSACCOUNT_KIT_REMOTE_IS_NULLPTR, 268 ERR_OSACCOUNT_KIT_SEND_REQUEST_ERROR, 269 ERR_OSACCOUNT_KIT_GET_SYSTEM_ABILITY_MANAGER_ERROR, 270 ERR_OSACCOUNT_KIT_GET_ACCOUNT_SYSTEM_ABILITY_ERROR, 271 // 4587537 272 ERR_OSACCOUNT_KIT_CAST_ACCOUNT_PROXY_ERROR, 273 ERR_OSACCOUNT_KIT_GET_APP_ACCOUNT_SERVICE_ERROR, 274 ERR_OSACCOUNT_KIT_GET_APP_ACCOUNT_PROXY_ERROR, 275 ERR_OSACCOUNT_KIT_CREATE_APP_ACCOUNT_DEATH_RECIPIENT_ERROR, 276 ERR_OSACCOUNT_KIT_IS_OS_ACCOUNT_EXISTS_ERROR, 277 ERR_OSACCOUNT_KIT_IS_OS_ACCOUNT_ACTIVED_ERROR, 278 ERR_OSACCOUNT_KIT_IS_OS_ACCOUNT_CONSTRAINT_ENABLE_ERROR, 279 ERR_OSACCOUNT_KIT_IS_TEST_OS_ACCOUNT_ERROR, 280 ERR_OSACCOUNT_KIT_IS_OS_ACCOUNT_VERIFIED_ERROR, 281 ERR_OSACCOUNT_KIT_GET_CREATED_OS_ACCOUNT_COUNT_ERROR, 282 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_LOCAL_ID_FROM_PROCESS_ERROR, 283 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_LOCAL_ID_FROM_UID_ERROR, 284 ERR_OSACCOUNT_KIT_QUERY_MAX_OS_ACCOUNT_NUMBER_ERROR, 285 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_ALL_CONSTRAINTS_ERROR, 286 ERR_OSACCOUNT_KIT_QUERY_ALL_CREATED_OS_ACCOUNTS_ERROR, 287 ERR_OSACCOUNT_KIT_QUERY_CURRENT_OS_ACCOUNT_ERROR, 288 ERR_OSACCOUNT_KIT_QUERY_OS_ACCOUNT_BY_ID_ERROR, 289 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_TYPE_FROM_PROCESS_ERROR, 290 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_PROFILE_PHOTO_ERROR, 291 ERR_OSACCOUNT_KIT_IS_MULTI_OS_ACCOUNT_ENABLE_ERROR, 292 // 4587557 293 ERR_OSACCOUNT_KIT_WRITE_STRING_CONSTRAINT_ERROR, 294 ERR_OSACCOUNT_KIT_WRITE_INT_UID_ERROR, 295 ERR_OSACCOUNT_KIT_READ_CONSTRAINTS_ERROR, 296 ERR_OSACCOUNT_KIT_READ_IN_UID_ERROR, 297 ERR_OSACCOUNT_KIT_SET_OS_ACCOUNT_NAME_ERROR, 298 ERR_OSACCOUNT_KIT_SET_OS_ACCOUNT_CONSTRAINTS_ERROR, 299 ERR_OSACCOUNT_KIT_SET_OS_ACCOUNT_PROFILE_PHOTO_ERROR, 300 ERR_OSACCOUNT_KIT_WRITE_STRING_LOCAL_NAME_ERROR, 301 ERR_OSACCOUNT_KIT_WRITE_STRING_STOREID_ERROR, 302 ERR_OSACCOUNT_KIT_WRITE_STRING_PHOTO_ERROR, 303 ERR_OSACCOUNT_KIT_WRITE_STRING_VECTOR_CONSTRAINTS_ERROR, 304 ERR_OSACCOUNT_KIT_READ_STRING_VECTOR_CONSTRAINTS_ERROR, 305 ERR_OSACCOUNT_KIT_WRITE_BOOL_ENABLE_ERROR, 306 ERR_OSACCOUNT_KIT_GET_DISTRIBUTED_VIRTUAL_DEVICE_ID_ERROR, 307 ERR_OSACCOUNT_KIT_ACTIVATE_OS_ACCOUNT_ERROR, 308 ERR_OSACCOUNT_KIT_START_OS_ACCOUNT_ERROR, 309 ERR_OSACCOUNT_KIT_STOP_OS_ACCOUNT_ERROR, 310 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_LOCAL_ID_FOR_SERIAL_NUMBER_ERROR, 311 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_LOCAL_ID_FOR_DOMAIN_ERROR, 312 ERR_OSACCOUNT_KIT_GET_SERIAL_NUMBER_FOR_OS_ACCOUNT__ERROR, 313 // 4587577 314 ERR_OSACCOUNT_KIT_LOCAL_NAME_OUTFLOW_ERROR, 315 ERR_OSACCOUNT_KIT_LOCAL_NAME_EMPTY_ERROR, 316 ERR_OSACCOUNT_KIT_DOMAIN_NAME_LENGTH_INVALID_ERROR, 317 ERR_OSACCOUNT_KIT_LOCAL_ID_INVALID_ERROR, 318 ERR_OSACCOUNT_KIT_DOMAIN_ACCOUNT_NAME_LENGTH_INVALID_ERROR, 319 ERR_OSACCOUNT_KIT_CANNOT_DELETE_ID_ERROR, 320 ERR_OSACCOUNT_KIT_DOMAIN_OUTFLOW_ERROR, 321 ERR_OSACCOUNT_KIT_PHOTO_OUTFLOW_ERROR, 322 ERR_OSACCOUNT_KIT_TYPE_ERROR, 323 ERR_OSACCOUNT_KIT_WRITE_PARCELABLE_SUBSCRIBE_INFO_ERROR, 324 ERR_OSACCOUNT_KIT_WRITE_PARCELABLE_EVENT_LISTENER_ERROR, 325 ERR_OSACCOUNT_KIT_SUBSCRIBE_ERROR, 326 ERR_OSACCOUNT_KIT_UNSUBSCRIBE_ERROR, 327 ERR_OSACCOUNT_KIT_SUBSCRIBER_IS_NULLPTR, 328 ERR_OSACCOUNT_KIT_GET_SUBSCRIBE_INFO_ERROR, 329 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_SUBSCRIBE_TYPE_ERROR, 330 ERR_OSACCOUNT_KIT_GET_NAME_ERROR, 331 ERR_OSACCOUNT_KIT_NO_SPECIFIED_SUBSCRIBER_HAS_BEEN_REGISTERED, 332 ERR_OSACCOUNT_KIT_WRITE_BOOL_IS_OSACCOUNT_VERIFIED_ERROR, 333 ERR_OSACCOUNT_KIT_DUMP_STATE_ERROR, 334 ERR_OSACCOUNT_KIT_GET_CREATED_OS_ACCOUNT_NUM_FROM_DATABASE_ERROR, 335 // 4587597 336 ERR_OSACCOUNT_KIT_GET_SERIAL_NUM_FROM_DATABASE_ERROR, 337 ERR_OSACCOUNT_KIT_GET_MAX_ALLOWED_CREATE_ID_FROM_DATABASE_ERROR, 338 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_FROM_DATABASE_ERROR, 339 ERR_OSACCOUNT_KIT_GET_OS_ACCOUNT_LIST_FROM_DATABASE_ERROR, 340 ERR_OSACCOUNT_KIT_CREATE_BASIC_ACCOUNTS_ERROR, 341 ERR_OSACCOUNT_KIT_QUERY_ACTIVE_OS_ACCOUNT_IDS_ERROR, 342 }; 343 344 // Error code for OSACCOUNT_SERVICE 345 constexpr ErrCode ACCOUNT_OSACCOUNT_SERVICE_ERR_OFFSET = 346 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_OSACCOUNT_SERVICE); 347 enum { 348 // 4653057 349 ERR_OSACCOUNT_SERVICE_MANAGER_BAD_UID_ERROR = ACCOUNT_OSACCOUNT_SERVICE_ERR_OFFSET + 0x0001, 350 ERR_OSACCOUNT_SERVICE_MANAGER_QUERY_DISTRIBUTE_DATA_ERROR, 351 ERR_OSACCOUNT_SERVICE_MANAGER_NOT_ENABLE_MULTI_ERROR, 352 ERR_OSACCOUNT_SERVICE_MANAGER_NAME_SIZE_EMPTY_ERROR, 353 ERR_OSACCOUNT_SERVICE_MANAGER_NAME_SIZE_OVERFLOW_ERROR, 354 ERR_OSACCOUNT_SERVICE_MANAGER_PHOTO_SIZE_OVERFLOW_ERROR, 355 ERR_OSACCOUNT_SERVICE_INNER_DOMAIN_NAME_LEN_ERROR, 356 ERR_OSACCOUNT_SERVICE_INNER_DOMAIN_ACCOUNT_NAME_LEN_ERROR, 357 ERR_OSACCOUNT_SERVICE_INNER_PHOTO_OUTFLOW_ERROR, 358 ERR_OSACCOUNT_SERVICE_INNER_LOCAL_NAME_OUTFLOW_ERROR, 359 ERR_OSACCOUNT_SERVICE_INNER_SER_CONSTRAINTS_ERROR, 360 ERR_OSACCOUNT_SERVICE_MANAGER_CREATE_INVALID_TYPE_ACCOUNT_ERROR, 361 ERR_OSACCOUNT_SERVICE_MANAGER_DOMAIN_SIZE_OVERFLOW_ERROR, 362 ERR_OSACCOUNT_SERVICE_MANAGER_ID_ERROR, 363 ERR_OSACCOUNT_SERVICE_MANAGER_CANNOT_HIDE_INTERFACE_ERROR, 364 ERR_OSACCOUNT_SERVICE_MANAGER_CREATE_OSACCOUNT_TYPE_ERROR, 365 // 4653067 366 ERR_OSACCOUNT_SERVICE_INNER_SELECT_OSACCOUNT_BYID_ERROR, 367 ERR_OSACCOUNT_SERVICE_INNER_CREATE_OVERFLOW_OSACCOUNTMAX_ERROR, 368 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_CREATE_ADMIN_ACCOUNT_ERROR, 369 ERR_OSACCOUNT_SERVICE_INNER_OS_ACCOUNT_TYPE_ERROR, 370 ERR_OSACCOUNT_SERVICE_INNER_UPDATE_CONFIG_ERROR, 371 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_FIND_OSACCOUNT_ERROR, 372 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_ADMIN_OSACCOUNT_ERROR, 373 ERR_OSACCOUNT_SERVICE_INNER_VISITOR_ACCOUNT_EXIST_ERROR, 374 ERR_OSACCOUNT_SERVICE_INNER_CREATE_ACCOUNT_ERROR, 375 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_DELETE_ADMIN_ERROR, 376 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_DELE_OSACCOUNT_ERROR, 377 ERR_OSACCOUNT_SERVICE_INNER_SELECT_ERROR, 378 ERR_OSACCOUNT_SERVICE_INNER_UPDATE_ACCOUNT_ERROR, 379 ERR_OSACCOUNT_SERVICE_INNER_FIND_ACCOUNT_IN_ACTIVE_ERROR, 380 ERR_OSACCOUNT_SERVICE_INNER_GET_SERIAL_NUMBER_ERROR, 381 ERR_OSACCOUNT_SERVICE_INNER_GET_OSACCOUNT_ID_ERROR, 382 ERR_OSACCOUNT_SERVICE_INNER_STOP_OSACCOUNT_ERROR, 383 ERR_OSACCOUNT_SERVICE_INNER_GET_TYPE_CONSTRAINTS_ERROR, 384 ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_IS_UNVERIFIED_ERROR, 385 ERR_OSACCOUNT_SERVICE_INNER_GET_ACCOUNT_LIST_ERROR, 386 ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_ALREADY_ACTIVE_ERROR, 387 ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_STOP_ACTIVE_ERROR, 388 ERR_OSACCOUNT_SERVICE_INNER_SEND_AM_ACCOUNT_START_ERROR, 389 ERR_OSACCOUNT_SERVICE_INNER_SEND_AM_ACCOUNT_STOP_ERROR, 390 ERR_OSACCOUNT_SERVICE_INNER_SEND_BM_ACCOUNT_CREATE_ERROR, 391 ERR_OSACCOUNT_SERVICE_INNER_SEND_BM_ACCOUNT_DELE_ERROR, 392 ERR_OSACCOUNT_SERVICE_INNER_SEND_IAM_ACCOUNT_DELE_ERROR, 393 ERR_OSACCOUNT_SERVICE_PERMISSION_DENIED, 394 ERR_OSACCOUNT_SERVICE_INNER_SEND_AM_ACCOUNT_SWITCH_ERROR, 395 ERR_OSACCOUNT_SERVICE_INNER_SEND_CE_ACCOUNT_SWITCH_ERROR, 396 ERR_OSACCOUNT_SERVICE_INNER_REMOVE_ACCOUNT_ACTIVED_ERROR, 397 ERR_OSACCOUNT_SERVICE_INNER_CANNOT_REMOVE_ADMIN_ERROR, 398 ERR_OSACCOUNT_SERVICE_INNER_DO_NOT_HAVE_PHOTO_ERROR, 399 ERR_OSACCOUNT_SERVICE_INNER_DOMAIN_ALREADY_BIND_ERROR, 400 ERR_OSACCOUNT_SERVICE_SUBSCRIBE_MANAGER_PTR_IS_NULLPTR, 401 ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_TO_BE_REMOVED_ERROR, 402 // 4653108 403 ERR_OSACCOUNT_SERVICE_CONTROL_FIND_AVAILABLE_ID_ERROR, 404 ERR_OSACCOUNT_SERVICE_CONTROL_UPDATE_OSACCOUNT_ERROR, 405 ERR_OSACCOUNT_SERVICE_CONTROL_CREATE_OSACCOUNT_ERROR, 406 ERR_OSACCOUNT_SERVICE_CONTROL_SELECT_OS_ACCOUNT_ERROR, 407 ERR_OSACCOUNT_SERVICE_CONTROL_SELECT_CONSTRAINTS_ERROR, 408 ERR_OSACCOUNT_SERVICE_CONTROL_GET_CONSTRAINTS_ERROR, 409 ERR_OSACCOUNT_SERVICE_CONTROL_GET_TYPE_ERROR, 410 ERR_OSACCOUNT_SERVICE_CONTROL_INSERT_FILE_EXISTS_ERROR, 411 ERR_OSACCOUNT_SERVICE_CONTROL_INSERT_OS_ACCOUNT_INFO_ERROR, 412 ERR_OSACCOUNT_SERVICE_CONTROL_INSERT_OS_ACCOUNT_LIST_ERROR, 413 ERR_OSACCOUNT_SERVICE_CONTROL_GET_OS_ACCOUNT_LIST_ERROR, 414 ERR_OSACCOUNT_SERVICE_CONTROL_DEL_OS_ACCOUNT_INFO_ERROR, 415 ERR_OSACCOUNT_SERVICE_CONTROL_UPDATE_FILE_NOT_EXISTS_ERROR, 416 ERR_OSACCOUNT_SERVICE_CONTROL_UPDATE_FILE_ERROR, 417 ERR_OSACCOUNT_SERVICE_CONTROL_MAX_CAN_CREATE_ERROR, 418 ERR_OSACCOUNT_SERVICE_CONTROL_SELECT_CAN_USE_ID_ERROR, 419 ERR_OSACCOUNT_SERVICE_CONTROL_GET_ACCOUNT_LIST_ERROR, 420 ERR_OSACCOUNT_SERVICE_CONTROL_SET_ACCOUNT_LIST_ERROR, 421 ERR_OSACCOUNT_SERVICE_CONTROL_PHOTO_STR_ERROR, 422 ERR_OSACCOUNT_SERVICE_CONTROL_ID_CANNOT_CREATE_ERROR, 423 ERR_OSACCOUNT_SERVICE_CONTROL_CANNOT_DELETE_ID_ERROR, 424 ERR_OSACCOUNT_SERVICE_CONTROL_DO_NOT_HAVE_ALLOW_SERIAL_ERROR, 425 // 4653130 426 ERR_OSACCOUNT_SERVICE_FILE_DELE_ERROR, 427 ERR_OSACCOUNT_SERVICE_FILE_FIND_DIR_ERROR, 428 ERR_OSACCOUNT_SERVICE_FILE_FIND_FILE_ERROR, 429 ERR_OSACCOUNT_SERVICE_FILE_CREATE_DIR_ERROR, 430 ERR_OSACCOUNT_SERVICE_FILE_CHANGE_DIR_MODE_ERROR, 431 ERR_OSACCOUNT_SERVICE_CONTROL_INSERT_OS_ACCOUNT_FILE_ERROR, 432 ERR_OSACCOUNT_SERVICE_DATA_STORAGE_KEY_NOT_EXISTS_ERROR, 433 ERR_OSACCOUNT_SERVICE_DATA_STORAGE_KEY_EXISTED_ERROR, 434 ERR_OSACCOUNT_SERVICE_CREATE_EVENT_HANDLER, 435 ERR_OSACCOUNT_SERVICE_ACCOUNT_INFO_EMPTY_ERROR, 436 // 4653141 437 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_AM_ACCOUNT_START_ERROR, 438 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_AM_ACCOUNT_STOP_ERROR, 439 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_BM_ACCOUNT_CREATE_ERROR, 440 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_BM_ACCOUNT_DELETE_ERROR, 441 ERR_OSACCOUNT_SERVICE_SUBSCRIBE_GET_EVENT_HANDLE_ERROR, 442 ERR_OSACCOUNT_SERVICE_STANDARD_BYTE_STRING_ERROR, 443 ERR_OSACCOUNT_SERVICE_STANDARD_CREATE_IMAGE_SOURCE_ERROR, 444 ERR_OSACCOUNT_SERVICE_STANDARD_CREATE_PIXEL_MAP_ERROR, 445 ERR_OSACCOUNT_SERVICE_OS_FILE_GET_CONFIG_ERROR, 446 ERR_OSACCOUNT_SERVICE_OS_FILE_GET_CONSTRAINTS_LITS_ERROR, 447 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_STORAGE_ACCOUNT_CREATE_ERROR, 448 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_STORAGE_ACCOUNT_REMOVE_ERROR, 449 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_STORAGE_ACCOUNT_START_ERROR, 450 ERR_OSACCOUNT_SERVICE_INTERFACE_TO_STORAGE_ACCOUNT_STOP_ERROR, 451 ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_OPERATING_ERROR, 452 ERR_OSACCOUNT_SERVICE_CONTROL_SAVE_SPECIFIC_CONSTRAINTS_TO_FILE_ERROR, 453 ERR_OSACCOUNT_SERVICE_CONTROL_GET_SPECIFIC_CONSTRAINTS_FROM_FILE_ERROR, 454 ERR_OSACCOUNT_SERVICE_CONTROL_SAVE_GLOBAL_CONSTRAINTS_TO_FILE_ERROR, 455 ERR_OSACCOUNT_SERVICE_CONTROL_GET_GLOBAL_CONSTRAINTS_FROM_FILE_ERROR, 456 ERR_OSACCOUNT_SERVICE_CONTROL_SAVE_BASE_CONSTRAINTS_TO_FILE_ERROR, 457 ERR_OSACCOUNT_SERVICE_CONTROL_GET_BASE_CONSTRAINTS_FROM_FILE_ERROR, 458 ERR_OSACCOUNT_SERVICE_GET_DATA_FROM_BASE_CONSTRAINTS_FILE_EMPTY, 459 ERR_OSACCOUNT_SERVICE_GET_DATA_FROM_GLOBAL_CONSTRAINTS_FILE_EMPTY, 460 ERR_OSACCOUNT_SERVICE_GET_DATA_FROM_SPECIFIC_CONSTRAINTS_FILE_EMPTY, 461 }; 462 463 // Error code for ACCOUNT_IAM_KIT 464 constexpr ErrCode ACCOUNT_IAM_KIT_ERR_OFFSET = 465 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_ACCOUNT_IAM_KIT); 466 enum { 467 ERR_ACCOUNT_IAM_KIT_SEND_REQUEST = ACCOUNT_IAM_KIT_ERR_OFFSET + 0x0001, 468 ERR_ACCOUNT_IAM_KIT_PROXY_ERROR, 469 ERR_ACCOUNT_IAM_KIT_WRITE_PARCEL_FAIL, 470 ERR_ACCOUNT_IAM_KIT_READ_PARCEL_FAIL, 471 ERR_ACCOUNT_IAM_KIT_PARAM_INVALID_ERROR, 472 ERR_ACCOUNT_IAM_KIT_INPUTER_ALREADY_REGISTERED, 473 ERR_ACCOUNT_IAM_KIT_INPUTER_NOT_REGISTERED, 474 ERR_ACCOUNT_IAM_KIT_GET_USERID_FAIL, 475 ERR_ACCOUNT_IAM_UNSUPPORTED_AUTH_TYPE 476 }; 477 478 // Error code for ACCOUNT_IAM_SERVICE 479 constexpr ErrCode ACCOUNT_IAM_SERVICE_ERR_OFFSET = 480 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_ACCOUNT_IAM_SERVICE); 481 enum { 482 ERR_ACCOUNT_IAM_SERVICE_PERMISSION_DENIED = ACCOUNT_IAM_SERVICE_ERR_OFFSET + 0x0001, 483 ERR_ACCOUNT_IAM_SERVICE_PARAM_INVALID_ERROR, 484 ERR_ACCOUNT_IAM_SERVICE_GET_STORAGE_SYSTEM_ABILITY, 485 ERR_ACCOUNT_IAM_SERVICE_REMOTE_IS_NULLPTR, 486 ERR_ACCOUNT_IAM_SERVICE_WRITE_PARCEL_FAIL, 487 ERR_ACCOUNT_IAM_SERVICE_READ_PARCEL_FAIL 488 }; 489 490 // Error code for OHOSACCOUNT_KIT 491 constexpr ErrCode ACCOUNT_OHOSACCOUNT_KIT_ERR_OFFSET = 492 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_OHOSACCOUNT_KIT); 493 enum { 494 ERR_OHOSACCOUNT_KIT_GET_SYSTEM_ABILITY_MANAGER = ACCOUNT_OHOSACCOUNT_KIT_ERR_OFFSET + 0x0001, 495 ERR_OHOSACCOUNT_KIT_INVALID_PARAMETER, 496 }; 497 498 // Error code for OHOSACCOUNT_SERVICE 499 constexpr ErrCode ACCOUNT_OHOSACCOUNT_SERVICE_ERR_OFFSET = 500 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_OHOSACCOUNT_SERVICE); 501 enum { 502 ERR_OHOSACCOUNT_SERVICE_NAME_IS_EMPTY = ACCOUNT_OHOSACCOUNT_SERVICE_ERR_OFFSET + 0x0001, 503 ERR_OHOSACCOUNT_SERVICE_FILE_CHANGE_DIR_MODE_ERROR, 504 }; 505 506 // Error code for DOMAIN_ACCOUNT_SERVICE 507 constexpr ErrCode DOMAIN_ACCOUNT_ERR_OFFSET = 508 ErrCodeOffset(SUBSYS_ACCOUNT, ACCOUNT_MODULE_DOMAIN_ACCOUNT_SERVICE); 509 enum { 510 ERR_DOMAIN_ACCOUNT_SERVICE_PLUGIN_ALREADY_EXIST = DOMAIN_ACCOUNT_ERR_OFFSET + 0x0001, 511 ERR_DOMAIN_ACCOUNT_SERVICE_PLUGIN_NOT_EXIST, 512 }; 513 514 enum JSErrorCode { 515 ERR_JS_SUCCESS = 0, 516 ERR_JS_PERMISSION_DENIED = 201, 517 ERR_JS_PARAMETER_ERROR = 401, 518 ERR_JS_CAPABILITY_NOT_SUPPORTED = 801, 519 ERR_JS_SYSTEM_SERVICE_EXCEPTION = 12300001, 520 ERR_JS_INVALID_PARAMETER = 12300002, 521 ERR_JS_ACCOUNT_NOT_FOUND = 12300003, 522 ERR_JS_ACCOUNT_ALREADY_EXIST = 12300004, 523 ERR_JS_MULTI_USER_NOT_SUPPORT = 12300005, 524 ERR_JS_ACCOUNT_TYPE_NOT_SUPPORT = 12300006, 525 ERR_JS_ACCOUNT_NUMBER_REACH_LIMIT = 12300007, 526 ERR_JS_ACCOUNT_RESTRICTED = 12300008, 527 ERR_JS_ACCOUNT_ALREADY_ACTIVATED = 12300009, 528 ERR_JS_ACCOUNT_SERVICE_BUSY = 12300010, 529 ERR_JS_LISTENER_ALREADY_REGISTERED = 12300011, 530 ERR_JS_LISTENER_NOT_REGISTERED = 12300012, 531 532 ERR_JS_AUTH_CREDENTIAL_WRONG_ERROR = 12300101, 533 ERR_JS_CREDENTIAL_NOT_EXIST = 12300102, 534 ERR_JS_CREDENTIAL_INPUTER_ALREADY_EXIST = 12300103, 535 ERR_JS_CREDENTIAL_INPUTER_NOT_EXIST = 12300104, 536 ERR_JS_TRUST_LEVEL_NOT_SUPPORTED = 12300105, 537 ERR_JS_AUTH_TYPE_NOT_SUPPORTED = 12300106, 538 ERR_JS_AUTH_TYPE_NOT_FOUND = 12300107, 539 ERR_JS_SESSION_NOT_EXIST = 12300108, 540 ERR_JS_AUTH_CANCELLED = 12300109, 541 ERR_JS_AUTH_SERVICE_LOCKED = 12300110, 542 ERR_JS_AUTH_TIMEOUT = 12300111, 543 ERR_JS_AUTH_SERVICE_BUSY = 12300112, 544 ERR_JS_ACCOUNT_AUTHENTICATOR_NOT_EXIST = 12300113, 545 ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION = 12300114, 546 547 ERR_JS_INVALID_CONTEXT_ID = 12300002, 548 549 ERR_JS_DOMAIN_PLUGIN_ALREADY_REGISTERED = 12300201, 550 551 ERR_JS_APPLICATION_NOT_EXIST = 12400001, 552 ERR_JS_CUSTOM_DATA_NOT_FOUND = 12400002, 553 ERR_JS_CUSTOM_DATA_NUMBER_REACH_LIMIT = 12400003, 554 ERR_JS_TOKEN_NUMBER_REACH_LIMIT = 12400004, 555 ERR_JS_AUTHORIZATION_LIST_TOO_LARGE = 12400005 556 }; 557 558 int32_t ConvertToJSErrCode(int32_t errCode); 559 } // namespace OHOS 560 561 #endif // OS_ACCOUNT_FRAMEWORKS_COMMON_ACCOUNT_ERROR_INCLUDE_ACCOUNT_ERROR_NO_H 562