1 /* 2 * Copyright (c) 2025 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 HIAPPEVENT_ANI_ERROR_CODE_H 17 #define HIAPPEVENT_ANI_ERROR_CODE_H 18 19 namespace OHOS { 20 namespace HiviewDFX { 21 constexpr int32_t ERR_CODE_SUCC = 0; 22 constexpr int32_t ERR_CODE_PARAM_FORMAT = -1; 23 constexpr int32_t ERR_CODE_PARAM_INVALID = -2; 24 constexpr int32_t ERROR_INVALID_PARAM_NAME = 1; 25 26 constexpr int32_t ERR_PARAM = 401; 27 constexpr int32_t ERR_INVALID_NAME = 11101002; 28 constexpr int32_t ERR_INVALID_DOMAIN = 11101001; 29 constexpr int32_t ERR_DISABLE = 11100001; 30 constexpr int32_t ERR_INVALID_KEY = 11101005; 31 constexpr int32_t ERR_INVALID_STR_LEN = 11101004; 32 constexpr int32_t ERR_INVALID_PARAM_NUM = 11101003; 33 constexpr int32_t ERR_INVALID_ARR_LEN = 11101006; 34 constexpr int32_t ERR_INVALID_CUSTOM_PARAM_NUM = 11101007; 35 36 constexpr int32_t ERR_INVALID_MAX_STORAGE = 11103001; 37 38 constexpr int32_t ERR_INVALID_WATCHER_NAME = 11102001; 39 constexpr int32_t ERR_INVALID_FILTER_DOMAIN = 11102002; 40 constexpr int32_t ERR_INVALID_COND_ROW = 11102003; 41 constexpr int32_t ERR_INVALID_COND_SIZE = 11102004; 42 constexpr int32_t ERR_INVALID_COND_TIMEOUT = 11102005; 43 44 constexpr int32_t ERR_INVALID_SIZE = 11104001; 45 } // namespace HiviewDFX 46 } // namespace OHOS 47 48 #endif // HIAPPEVENT_ANI_ERROR_CODE_H 49