• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 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
16export const AccountErrCode = {
17    "ERR_JS_SUCCESS" : 0,
18    "ERR_JS_PERMISSION_DENIED" : 201,
19    "ERR_JS_PARAMETER_ERROR" : 401,
20    "ERR_JS_CAPABILITY_NOT_SUPPORTED" : 801,
21    "ERR_JS_SYSTEM_SERVICE_EXCEPTION" : 12300001,
22    "ERR_JS_INVALID_PARAMETER" : 12300002,
23    "ERR_JS_ACCOUNT_NOT_FOUND" : 12300003,
24    "ERR_JS_ACCOUNT_ALREADY_EXIST" : 12300004,
25    "ERR_JS_MULTI_USER_NOT_SUPPORT" : 12300005,
26    "ERR_JS_ACCOUNT_TYPE_NOT_SUPPORT" : 12300006,
27    "ERR_JS_ACCOUNT_NUMBER_REACH_LIMIT" : 12300007,
28    "ERR_JS_ACCOUNT_RESTRICTED" : 12300008,
29    "ERR_JS_ACCOUNT_ALREADY_ACTIVATED" : 12300009,
30    "ERR_JS_ACCOUNT_SERVICE_BUSY" : 12300010,
31    "ERR_JS_LISTENER_ALREADY_REGISTERED" : 12300011,
32    "ERR_JS_LISTENER_NOT_REGISTERED" : 12300012,
33
34    "ERR_JS_AUTH_CREDENTIAL_WRONG_ERROR" : 12300101,
35    "ERR_JS_CREDENTIAL_NOT_EXIST" : 12300102,
36    "ERR_JS_CREDENTIAL_INPUTER_ALREADY_EXIST" : 12300103,
37    "ERR_JS_CREDENTIAL_INPUTER_NOT_EXIST" : 12300104,
38    "ERR_JS_TRUST_LEVEL_NOT_SUPPORTED" : 12300105,
39    "ERR_JS_AUTH_TYPE_NOT_SUPPORTED" : 12300106,
40    "ERR_JS_AUTH_TYPE_NOT_FOUND" : 12300107,
41    "ERR_JS_SESSION_NOT_EXIST" : 12300108,
42    "ERR_JS_AUTH_CANCELLED" : 12300109,
43    "ERR_JS_AUTH_SERVICE_LOCKED" : 12300110,
44    "ERR_JS_AUTH_TIMEOUT" : 12300111,
45    "ERR_JS_AUTH_SERVICE_BUSY" : 12300112,
46    "ERR_JS_ACCOUNT_AUTHENTICATOR_NOT_EXIST" : 12300113,
47    "ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION" : 12300114,
48
49    "ERR_JS_INVALID_CONTEXT_ID" : 12300002,
50
51    "ERR_JS_APPLICATION_NOT_EXIST" : 12400001,
52    "ERR_JS_CUSTOM_DATA_NOT_FOUND" : 12400002,
53    "ERR_JS_CUSTOM_DATA_NUMBER_REACH_LIMIT" : 12400003,
54    "ERR_JS_TOKEN_NUMBER_REACH_LIMIT" : 12400004,
55    "ERR_JS_AUTHORIZATION_LIST_TOO_LARGE" : 12400005
56}
57