• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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     INVALID_ARGUMENT = 7400101,
32     OPERATION_NOT_ALLOWED = 7400102,
33     SESSION_NOT_CONFIG = 7400103,
34     SESSION_NOT_RUNNING = 7400104,
35     SESSION_CONFIG_LOCKED = 7400105,
36     DEVICE_SETTING_LOCKED = 7400106,
37     CONFLICT_CAMERA = 7400107,
38     DEVICE_DISABLED = 7400108,
39     DEVICE_PREEMPTED = 7400109,
40     UNRESOLVED_CONFLICTS_BETWEEN_STREAMS = 7400110,
41     SERVICE_FATL_ERROR = 7400201
42 };
43 } // namespace CameraStandard
44 } // namespace OHOS
45 #endif // CAMERA_ERROR_CODE_H
46