1 /* Copyright (c) 2022 Huawei Device Co., Ltd. 2 * Licensed under the Apache License, Version 2.0 (the "License"); 3 * you may not use this file except in compliance with the License. 4 * You may obtain a copy of the License at 5 * 6 * http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14 15 #ifndef BASE_NOTIFICATION_CES_STANDARD_INNERKITS_BASE_INCLUDE_CES_INNER_ERRORS_H 16 #define BASE_NOTIFICATION_CES_STANDARD_INNERKITS_BASE_INCLUDE_CES_INNER_ERRORS_H 17 18 #include "errors.h" 19 20 namespace OHOS { 21 namespace Notification { 22 23 // The application dose not have permission to call the interface 24 const int32_t ERR_NOTIFICATION_CES_COMMON_PERMISSION_DENIED = 201; 25 26 // The param input is invalid 27 const int32_t ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID = 401; 28 29 // The SystemCapacity name was not found 30 const int32_t ERR_NOTIFICATION_CES_COMMON_SYSTEMCAP_NOT_SUPPORT = 801; 31 32 // The want action send by event is null 33 const int32_t ERR_NOTIFICATION_CES_WANT_ACTION_IS_NULL = 1500001; 34 35 // The sandbox application can not send common event 36 const int32_t ERR_NOTIFICATION_CES_SANDBOX_NOT_SUPPORT = 1500002; 37 38 // The common event send frequency too high 39 const int32_t ERR_NOTIFICATION_CES_EVENT_FREQ_TOO_HIGH = 1500003; 40 41 // The application can not send common event, it may be not SA app or System app 42 const int32_t ERR_NOTIFICATION_CES_NOT_SA_SYSTEM_APP = 1500004; 43 44 // The subscriber can not found 45 const int32_t ERR_NOTIFICATION_CES_NO_SUBSCRIBER = 1500005; 46 47 // The usreId is invalid 48 const int32_t ERR_NOTIFICATION_CES_USERID_INVALID = 1500006; 49 50 // The message send error 51 const int32_t ERR_NOTIFICATION_SEND_ERROR = 1500007; 52 53 // The CEMS error 54 const int32_t ERR_NOTIFICATION_CESM_ERROR = 1500008; 55 56 // The system error 57 const int32_t ERR_NOTIFICATION_SYS_ERROR = 1500009; 58 } // namespace Notification 59 } // namespace OHOS 60 61 #endif // BASE_NOTIFICATION_CES_STANDARD_INNERKITS_BASE_INCLUDE_CES_INNER_ERRORS_H