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_NOT_SUPPORT, 32 E_ALREADY_CONSUMED, 33 E_ALREADY_CLOSED, 34 E_UNOPENED, 35 E_RETRY_TIMEOUT, 36 E_PARTIAL_ERROR, 37 E_USER_UNLOCK, 38 E_VERSION_CONFLICT, 39 E_RECORD_EXIST_CONFLICT, 40 E_WITH_INVENTORY_DATA, 41 E_SYNC_TASK_MERGED, 42 E_RECORD_NOT_FOUND, 43 E_RECORD_ALREADY_EXISTED, 44 E_DB_ERROR, 45 E_INVALID_VALUE_FIELDS, 46 E_INVALID_FIELD_TYPE, 47 E_CONSTRAIN_VIOLATION, 48 E_INVALID_FORMAT, 49 E_INVALID_QUERY_FORMAT, 50 E_INVALID_QUERY_FIELD, 51 E_TIME_OUT, 52 E_OVER_MAX_LIMITS, 53 E_SECURITY_LEVEL_ERROR, 54 E_FILE_NOT_EXIST, 55 E_BUTT, 56 }; 57 } 58 #endif // OHOS_DISTRIBUTED_DATA_SERVICES_FRAMEWORK_STORE_GENERAL_ERROR_H 59