1/*
2 * Copyright (c) 2021-2023 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/**
17 * 错误码常量
18 */
19namespace ErrorCodeConst {
20/**
21 * 使用静默登录接口时帐号未登录场景
22 */
23    export const ACCOUNT_NOT_LOGIN = 2002
24
25    /**
26     * FILE_ACCESS相关接口错误码
27     */
28    export enum FILE_ACCESS {
29        /**
30         * 文件名已存在
31         */
32        FILE_NAME_EXIST = 13900015, // 新错误码13900015
33        /**
34         * 文件名非法,包含非法字符或过长
35         */
36        FILE_NAME_INVALID = 14000001, // 新错误码14000001
37        /**
38         * IPC异常
39         */
40        IPC_ERROR = -102825984,
41        /**
42         * 媒体库查询为空errcode返回3
43         */
44        GET_MEDIAFILE_NULL = '3'
45    }
46
47    /**
48     * 选择器对外返回的错误码
49     */
50    export enum PICKER {
51        /**
52         * 创建文件:同名文件已存在
53         */
54        FILE_NAME_EXIST = 1001,
55        /**
56         * 创建文件:文件名非法
57         */
58        FILE_NAME_INVALID = 1002,
59        /**
60         * uri授权失败
61         */
62        GRANT_URI_PERMISSION_FAIL = 2001,
63        /**
64         * 其他未知错误
65         */
66        OTHER_ERROR = 9001,
67        /**
68         * 创建正常
69         */
70        NORMAL = 1000
71    }
72}
73
74export default ErrorCodeConst