4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 * This file defines the error code of media service
25 * @file visual-svc-error.h
26 * @author Hyunjun Ko <zzoon.ko@samsung.com>
28 * @brief This file defines the error code of media service
32 * @ingroup VISUAL_SVC_API
33 * @defgroup VISUAL_SVC_ERROR Media service error code table
37 #ifndef _VISUAL_SVC_ERROR_H_
38 #define _VISUAL_SVC_ERROR_H_
43 #endif /* __cplusplus */
45 //Error types definition
46 #define MB_SVC_ERROR_NONE 0 /**< base */
47 #define MB_SVC_ERROR_INVALID_PARAMETER -1 /**< invalid parameter(s) */
48 #define MB_SVC_ERROR_INVALID_MEDIA -2 /**< invalid or unknown media */
49 #define MB_SVC_ERROR_FILE_NOT_EXSITED -3 /**< file doesn't exist */
50 #define MB_SVC_ERROR_DIR_NOT_EXSITED -4 /**< folder doesn't exist */
52 #define MB_SVC_ERROR_FILE_IO -11 /**< file I/O error */
53 #define MB_SVC_ERROR_OUT_OF_MEMORY -12 /**< memory allocation error*/
55 #define MB_SVC_ERROR_CREATE_THUMBNAIL -101 /**< create thumbnail */
56 #define MB_SVC_ERROR_COPY_THUMBNAIL -102 /**< copy thumbnail */
57 #define MB_SVC_ERROR_MOVE_THUMBNAIL -103 /**< move thumbnail */
59 #define MB_SVC_ERROR_DB_CONNECT -201 /**< connect DB error */
60 #define MB_SVC_ERROR_DB_DISCONNECT -202 /**< disconnect DB error */
61 #define MB_SVC_ERROR_DB_CREATE_TABLE -203 /**< create table error */
62 #define MB_SVC_ERROR_DB_NO_RECORD -204 /**< No record */
63 #define MB_SVC_ERROR_DB_OUT_OF_RANGE -205 /**< DB out of table records range*/
64 #define MB_SVC_ERROR_DB_INTERNAL -206 /**< internal db error */
66 #define MB_SVC_ERROR_NOT_IMPLEMENTED -997 /**< Not implemented */
67 #define MB_SVC_ERROR_INTERNAL -998 /**< internal error */
68 #define MB_SVC_ERROR_UNKNOWN -999 /**< Unknown error */
73 #endif /* __cplusplus */
79 #endif /*_VISUAL_SVC_ERROR_H_*/