• 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 FILE_ACCESS_FRAMEWORK_ERRNO_H
17 #define FILE_ACCESS_FRAMEWORK_ERRNO_H
18 
19 #include "errors.h"
20 
21 namespace OHOS {
22 namespace FileAccessFwk {
23 
24 const int BASE_OFFSET = 14300001;
25 enum {
26     ERR_OK = 0,
27     E_IPCS = BASE_OFFSET,                   // IPC error
28     E_URIS,                                 // Invalid uri
29     E_GETINFO,                              // Fail to get fileextension info
30     E_GETRESULT,                            // Get wrong result
31     E_REGISTER,                             // Fail to register notification
32     E_REMOVE,                               // Fail to remove notification
33     E_INIT_NOTIFY_AGENT,                    // Fail to init notification agent
34     E_NOTIFY,                               // Fail to notify agent
35     E_CONNECT,                              // Fail to connect file access extension ability
36     E_PERMISSION = 201,                     // Permission verification failed
37     E_PERMISSION_SYS                        // is not system app
38 };
39 } // namespace FileAccessFwk
40 } // namespace OHOS
41 #endif // FILE_ACCESS_FRAMEWORK_ERRNO_H