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 #include <stdint.h>
20 
21 namespace OHOS {
22 namespace Notification {
23 
24 // The application dose not have permission to call the interface
25 const int32_t ERR_NOTIFICATION_CES_COMMON_PERMISSION_DENIED = 201;
26 
27 // The application is not system application
28 const int32_t ERR_NOTIFICATION_CES_COMMON_NOT_SYSTEM_APP = 202;
29 
30 // The param input is invalid
31 const int32_t ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID = 401;
32 
33 // The SystemCapacity name was not found
34 const int32_t ERR_NOTIFICATION_CES_COMMON_SYSTEMCAP_NOT_SUPPORT = 801;
35 
36 // The want action send by event is null
37 const int32_t ERR_NOTIFICATION_CES_WANT_ACTION_IS_NULL = 1500001;
38 
39 // The sandbox application can not send common event
40 const int32_t ERR_NOTIFICATION_CES_SANDBOX_NOT_SUPPORT = 1500002;
41 
42 // The common event send frequency too high
43 const int32_t ERR_NOTIFICATION_CES_EVENT_FREQ_TOO_HIGH = 1500003;
44 
45 // The application can not send common event, it may be not SA app or System app
46 const int32_t ERR_NOTIFICATION_CES_NOT_SA_SYSTEM_APP = 1500004;
47 
48 // The subscriber can not found
49 const int32_t ERR_NOTIFICATION_CES_NO_SUBSCRIBER = 1500005;
50 
51 // The usreId is invalid
52 const int32_t ERR_NOTIFICATION_CES_USERID_INVALID = 1500006;
53 
54 // The message send error
55 const int32_t ERR_NOTIFICATION_SEND_ERROR = 1500007;
56 
57 // The CEMS error
58 const int32_t ERR_NOTIFICATION_CESM_ERROR = 1500008;
59 
60 // The system error
61 const int32_t ERR_NOTIFICATION_SYS_ERROR = 1500009;
62 }  // namespace Notification
63 }  // namespace OHOS
64 
65 #endif  // BASE_NOTIFICATION_CES_STANDARD_INNERKITS_BASE_INCLUDE_CES_INNER_ERRORS_H