1 /* 2 * Copyright (c) 2024 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_H 17 #define CAMERA_ERROR_H 18 19 #include <string> 20 #include "errors.h" 21 22 namespace OHOS { 23 namespace CameraStandard { 24 namespace CameraError { 25 constexpr ErrCode NO_ERROR = 0; 26 27 constexpr ErrCode INVALID_PARAM = 7400101; 28 constexpr ErrCode INVALID_OPTION = 7400102; 29 constexpr ErrCode SESSION_NOT_CONFIG = 7400103; 30 constexpr ErrCode SESSION_NOT_RUNNING = 7400104; 31 constexpr ErrCode SESSION_CONFIG_LOCKED = 7400105; 32 constexpr ErrCode DEVICE_SETTING_LOCKED = 7400106; 33 constexpr ErrCode CAMERA_CONFLICT = 7400107; 34 constexpr ErrCode SECURITY_DISABLED = 7400108; 35 constexpr ErrCode CAMERA_PREEMPED = 7400109; 36 constexpr ErrCode CONFLICT_WITH_CURRENT = 7400110; 37 constexpr ErrCode CAMERA_SERVICE_ERROR = 7400201; 38 } // namespace CameraError 39 } // namespace CameraStandard 40 } // namespace OHOS 41 #endif