2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief header file of Apprication Framework (declaration of API error code)
15 #ifndef __ICO_APF_ERROR_H__
16 #define __ICO_APF_ERROR_H__
25 * @brief Enumerations of common error code for Application Framework.
29 ICO_APF_E_NONE = TIZEN_ERROR_NONE, /**< Successful */
30 ICO_APF_E_INVALID_PARAM = TIZEN_ERROR_INVALID_PARAMETER,
31 ICO_APF_E_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,
32 ICO_APF_E_IO_ERROR = TIZEN_ERROR_IO_ERROR,
33 ICO_APF_E_UNKNOWN = TIZEN_ERROR_UNKNOWN
37 * @brief Enumerations of error code for Application Communication.
41 ICO_APF_COM_E_CREATE_CTX = -200, /**< Create context failed */
42 ICO_APF_COM_E_CLT_CONNECT = -201, /**< Client connect failed */
43 ICO_APF_COM_E_CLOSED = -202, /**< Connection closed */
44 ICO_APF_COM_E_WRITE = -203, /**< libwebsocket_write error */
45 ICO_APF_COM_E_RESERVED = -204, /**< Reserve data failed */
46 ICO_APF_COM_E_NO_EXIST = -205, /**< Uri does not exist */
47 ICO_APF_COM_E_UNKNOWN = -300, /**< Other error */
48 } ico_app_fw_com_error_e;
51 *@brief Enumerations of error code for Application Manager.
55 ICO_APP_CTL_E_NONE = TIZEN_ERROR_NONE, /**< Successful */
56 ICO_APP_CTL_E_INVALID_PARAM = TIZEN_ERROR_INVALID_PARAMETER,
57 ICO_APP_CTL_E_OUT_OF_MEM = TIZEN_ERROR_OUT_OF_MEMORY,
58 ICO_APP_CTL_E_IO_ERR = TIZEN_ERROR_IO_ERROR,
59 } ico_app_ctl_error_e;
62 * @brief Enumerations of error code for Resource Manager.
64 typedef enum _resmgr_error {
65 ICO_APF_RESOURCE_E_NONE = 0, /* Successful */
66 ICO_APF_RESOURCE_E_UNKOWN = -1, /* unkown error */
67 ICO_APF_RESOURCE_E_INVAL = -2, /* invalid parameter */
68 ICO_APF_RESOURCE_E_NOT_IMPLEMENTED = -3, /* not implemented */
69 ICO_APF_RESOURCE_E_NOT_INITIALIZED = -4, /* not initialized resmger module */
70 ICO_APF_RESOURCE_E_INIT_COM_FAILD = -5, /* intialize communication error */
71 ICO_APF_RESOURCE_E_COMMUNICATION = -6, /* communication error */
72 ICO_APF_RESOURCE_E_MSG_PARSER = -7, /* message parser faild */
73 ICO_APF_RESOURCE_E_SERVER_CLOSED = -8, /* server colosed */
74 ICO_APF_RESOURCE_E_SEND_DATA = -9, /* send data faile */
75 } ico_apf_resmgr_error_e;
80 #endif /* __ICO_APF_ERROR_H__ */