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_BUSY, 28 E_INVALID_ARGS, 29 E_NOT_INIT, 30 E_NOT_SUPPORT, 31 E_ALREADY_CONSUMED, 32 E_ALREADY_CLOSED, 33 E_UNOPENED, 34 E_RETRY_TIMEOUT, 35 E_PARTIAL_ERROR, 36 E_BUTT, 37 }; 38 } 39 #endif // OHOS_DISTRIBUTED_DATA_SERVICES_FRAMEWORK_STORE_GENERAL_ERROR_H 40