• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 INTERFACES_INNERKITS_PRIVACY_ERROR_H
17 #define INTERFACES_INNERKITS_PRIVACY_ERROR_H
18 namespace OHOS {
19 namespace Security {
20 namespace AccessToken {
21 enum PrivacyError {
22     ERR_PARAM_INVALID = 1,
23     ERR_SERVICE_ABNORMAL,
24     ERR_READ_PARCEL_FAILED,
25     ERR_WRITE_PARCEL_FAILED,
26     ERR_IPC_PARCEL_FAILED,
27     ERR_MALLOC_FAILED,
28     ERR_TOKENID_NOT_EXIST,
29     ERR_PERMISSION_NOT_EXIST,
30     ERR_CALLBACK_ALREADY_EXIST,
31     ERR_CALLBACK_NOT_EXIST,
32     ERR_CALLBACKS_EXCEED_LIMITATION,
33     ERR_PERMISSION_ALREADY_START_USING,
34     ERR_PERMISSION_NOT_START_USING,
35     ERR_PERMISSION_DENIED,
36     ERR_OVERSIZE,
37 };
38 } // namespace AccessToken
39 } // namespace Security
40 } // namespace OHOS
41 #endif
42