1bc03f14fSopenharmony_ci/*
2bc03f14fSopenharmony_ci * Copyright (C) 2022-2023 Huawei Device Co., Ltd.
3bc03f14fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4bc03f14fSopenharmony_ci * you may not use this file except in compliance with the License.
5bc03f14fSopenharmony_ci * You may obtain a copy of the License at
6bc03f14fSopenharmony_ci *
7bc03f14fSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8bc03f14fSopenharmony_ci *
9bc03f14fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10bc03f14fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11bc03f14fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12bc03f14fSopenharmony_ci * See the License for the specific language governing permissions and
13bc03f14fSopenharmony_ci * limitations under the License.
14bc03f14fSopenharmony_ci */
15bc03f14fSopenharmony_ci
16bc03f14fSopenharmony_ci#ifndef DISTRIBUTEDDATAMGR_PASTEBOARD_JS_ERR_H
17bc03f14fSopenharmony_ci#define DISTRIBUTEDDATAMGR_PASTEBOARD_JS_ERR_H
18bc03f14fSopenharmony_ci
19bc03f14fSopenharmony_cinamespace OHOS::MiscServices {
20bc03f14fSopenharmony_cienum class JSErrorCode : int32_t {
21bc03f14fSopenharmony_ci    SUCCESS = 0,
22bc03f14fSopenharmony_ci    NO_PERMISSION = 201,
23bc03f14fSopenharmony_ci    NO_SYSTEM_PERMISSION = 202,
24bc03f14fSopenharmony_ci    INVALID_PARAMETERS = 401,
25bc03f14fSopenharmony_ci    DEVICE_NOT_SUPPORT = 801,
26bc03f14fSopenharmony_ci    OUT_OF_RANGE = 12900001,
27bc03f14fSopenharmony_ci    RECORD_EXCEEDS_LIMIT,
28bc03f14fSopenharmony_ci    OTHER_COPY_OR_PASTE_IN_PROCESSING,
29bc03f14fSopenharmony_ci    COPY_FORBIDDEN,
30bc03f14fSopenharmony_ci    REQUEST_TIME_OUT,
31bc03f14fSopenharmony_ci    SETTINGS_ALREADY_EXIST,
32bc03f14fSopenharmony_ci};
33bc03f14fSopenharmony_ci} // namespace OHOS::MiscServices
34bc03f14fSopenharmony_ci
35bc03f14fSopenharmony_ci#endif // DISTRIBUTEDDATAMGR_PASTEBOARD_JS_ERR_H
36