1 /* 2 * Copyright (c) 2021 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 DISTRIBUTEDDATAMGR_DFX_CODE_CONSTANT_H 17 #define DISTRIBUTEDDATAMGR_DFX_CODE_CONSTANT_H 18 19 class DfxCodeConstant { 20 public: 21 static inline const int SERVICE_FAULT = 950001100; 22 static inline const int RUNTIME_FAULT = 950001101; 23 static inline const int DATABASE_FAULT = 950001102; 24 static inline const int COMMUNICATION_FAULT = 950001103; 25 static inline const int DATABASE_STATISTIC = 950001104; 26 static inline const int VISIT_STATISTIC = 950001105; 27 static inline const int TRAFFIC_STATISTIC = 950001106; 28 static inline const int DATABASE_PERFORMANCE_STATISTIC = 950001107; 29 static inline const int API_PERFORMANCE_STATISTIC = 950001110; 30 static inline const int API_PERFORMANCE_INTERFACE = 950001111; 31 static inline const int DATABASE_SYNC_FAILED = 950001112; 32 static inline const int DATABASE_CORRUPTED_FAILED = 950001113; 33 static inline const int DATABASE_REKEY_FAILED = 950001114; 34 static inline const int DATABASE_BEHAVIOUR = 950001115; 35 static inline const int UDMF_DATA_BEHAVIOR = 950001116; 36 }; 37 #endif // DISTRIBUTEDDATAMGR_DFX_CODE_CONSTANT_H 38