/* * sync-agent * Copyright (c) 2012 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef DATA_ADAPTER_ERROR_H_ #define DATA_ADAPTER_ERROR_H_ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** * @file error.h * @brief Definition of framework error codes for Data Adapter */ /** @addtogroup data_adapter * @{ */ /** * @brief Enumerations of error codes for Data Adapter */ typedef enum data_adapter_return { SYNC_AGENT_DA_SUCCESS = 1, /**< successful */ SYNC_AGENT_DA_ERRORS = -800, /**< fail */ SYNC_AGENT_DA_NOT_FOUND_PLUG_IN = -801, /**< not found data connector or converter plugIn */ SYNC_AGENT_DA_ERR_OPEN_FAILED = -802, /**< database open fail */ SYNC_AGENT_DA_ERR_CLOSE_FAILED = -803, /**< database close fail */ SYNC_AGENT_DA_ERR_TRANSACTION_FAILED = -804, /**< transaction fail */ SYNC_AGENT_DA_ERR_CREATE_TABLE_FAILED = -805, /**< create table fail */ SYNC_AGENT_DA_ERR_DROP_TABLE_FAILED = -806, /**< drop table fail */ SYNC_AGENT_DA_ERR_QUERY_FAILED = -807, /**< process query fail */ SYNC_AGENT_DA_ERR_NOT_OPENED = -808, /**< database not opened so fail */ SYNC_AGENT_DA_ERR_ACCOUNT_FULL = -809, /**< exist full account */ SYNC_AGENT_DA_ERR_DELETE_LAST_ACCOUNT = -810, /**< */ SYNC_AGENT_DA_ERR_PRIMARY_KEY_NOT_UNIQUE = -811, /**< already exist primary key */ SYNC_AGENT_DA_ERR_DB_HANDLER_MGR = -812, /**< database connection fail - get or create */ SYNC_AGENT_DA_ERR_ALREADY_EXIST = -813, /**< item already exist */ SYNC_AGENT_DA_ERR_INVALID_CONTENT = -814, /**< invalid content */ SYNC_AGENT_DA_ERR_MEMORY_FULL = -815, /**< memory full */ SYNC_AGENT_DA_ERR_SUB_DATA_EXIST = -816, /**< item not empty */ SYNC_AGENT_DA_ERR_LOCKED = -817, /**< database lock */ SYNC_AGENT_DA_ERR_MORE_DATA = -818, /**< query result has more data, used when iterating */ SYNC_AGENT_DA_ERR_NO_DATA = -819, /**< query result not found */ SYNC_AGENT_DA_ERR_NOT_SUPPORTED = -820, /**< operation not supported */ SYNC_AGENT_DA_ERR_NOT_EXECUTE = -821, /**< operation not executed */ SYNC_AGENT_DA_ERR_ITEM_READ_ONLY = -822, /**< requested item is read only*/ SYNC_AGENT_DA_ERR_INVALID_PARAMETER = -823, /**< invalid parameter*/ SYNC_AGENT_DA_ERR_SERVICE_DB = -824, /**< service database error*/ SYNC_AGENT_DA_ERR_SERVICE_IPC = -825, /**< service ipc error*/ } sync_agent_da_return_e; /** * @} */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* DATA_ADAPTER_ERROR_H_ */