• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 OHOS_DISTRIBUTED_DATA_SERVICES_FRAMEWORK_STORE_GENERAL_ERROR_H
17 #define OHOS_DISTRIBUTED_DATA_SERVICES_FRAMEWORK_STORE_GENERAL_ERROR_H
18 namespace OHOS::DistributedData {
19 enum GeneralError : int32_t {
20     E_OK = 0,
21     E_ERROR,
22     E_NETWORK_ERROR,
23     E_CLOUD_DISABLED,
24     E_LOCKED_BY_OTHERS,
25     E_RECODE_LIMIT_EXCEEDED,
26     E_NO_SPACE_FOR_ASSET,
27     E_BLOCKED_BY_NETWORK_STRATEGY,
28     E_BUSY,
29     E_INVALID_ARGS,
30     E_NOT_INIT,
31     E_DK_NOT_INIT,
32     E_NOT_LOGIN,
33     E_NOT_SUPPORT,
34     E_ALREADY_CONSUMED,
35     E_ALREADY_CLOSED,
36     E_UNOPENED,
37     E_RETRY_TIMEOUT,
38     E_PARTIAL_ERROR,
39     E_USER_UNLOCK,
40     E_VERSION_CONFLICT,
41     E_RECORD_EXIST_CONFLICT,
42     E_WITH_INVENTORY_DATA,
43     E_SYNC_TASK_MERGED,
44     E_RECORD_NOT_FOUND,
45     E_RECORD_ALREADY_EXISTED,
46     E_DB_ERROR,
47     E_INVALID_VALUE_FIELDS,
48     E_INVALID_FIELD_TYPE,
49     E_CONSTRAIN_VIOLATION,
50     E_INVALID_FORMAT,
51     E_INVALID_QUERY_FORMAT,
52     E_INVALID_QUERY_FIELD,
53     E_TIME_OUT,
54     E_OVER_MAX_LIMITS,
55     E_SECURITY_LEVEL_ERROR,
56     E_FILE_NOT_EXIST,
57     E_SCREEN_LOCKED,
58     E_USER_DEACTIVATING,
59     E_GET_CLOUD_USER_INFO,
60     E_GET_BRIEF_INFO,
61     E_GET_APP_SCHEMA,
62     E_CONNECT_ASSET_LOADER,
63     E_CONNECT_CLOUD_DB,
64     E_SKIP_ASSET,
65     E_BUTT,
66 };
67 }
68 #endif // OHOS_DISTRIBUTED_DATA_SERVICES_FRAMEWORK_STORE_GENERAL_ERROR_H