• 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 namespace OHOS {
20 namespace CameraStandard {
21 /**
22  * @brief Camera device remote request code for IPC.
23  *
24  * @since 1.0
25  * @version 1.0
26  */
27 enum CameraErrorCode {
28     SUCCESS = 0,
29     INVALID_ARGUMENT = 7400101,
30     OPERATION_NOT_ALLOWED = 7400102,
31     SESSION_NOT_CONFIG = 7400103,
32     SESSION_NOT_RUNNING = 7400104,
33     SESSION_CONFIG_LOCKED = 7400105,
34     DEVICE_SETTING_LOCKED = 7400106,
35     CONFILICT_CAMERA = 7400107,
36     DEVICE_DISABLED = 7400108,
37     SERVICE_FATL_ERROR = 7400201
38 };
39 } // namespace CameraStandard
40 } // namespace OHOS
41 #endif // CAMERA_ERROR_CODE_H
42