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