1 /*
2  * Copyright (c) 2021-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 CAMERA_ERROR_CODE_H
17 #define CAMERA_ERROR_CODE_H
18 
19 #include <cstdint>
20 namespace OHOS {
21 namespace CameraStandard {
22 /**
23  * @brief Camera device remote request code for IPC.
24  *
25  * @since 1.0
26  * @version 1.0
27  */
28 enum CameraErrorCode : int32_t {
29     SUCCESS = 0,
30     NO_SYSTEM_APP_PERMISSION = 202,
31     PARAMETER_ERROR = 401,
32     INVALID_ARGUMENT = 7400101,
33     OPERATION_NOT_ALLOWED = 7400102,
34     SESSION_NOT_CONFIG = 7400103,
35     SESSION_NOT_RUNNING = 7400104,
36     SESSION_CONFIG_LOCKED = 7400105,
37     DEVICE_SETTING_LOCKED = 7400106,
38     CONFLICT_CAMERA = 7400107,
39     DEVICE_DISABLED = 7400108,
40     DEVICE_PREEMPTED = 7400109,
41     UNRESOLVED_CONFLICTS_BETWEEN_STREAMS = 7400110,
42     SERVICE_FATL_ERROR = 7400201
43 };
44 } // namespace CameraStandard
45 } // namespace OHOS
46 #endif // CAMERA_ERROR_CODE_H
47