3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef NETWORK_ACCESS_ERROR_H_
19 #define NETWORK_ACCESS_ERROR_H_
23 #endif /* __cplusplus */
27 * @brief Defines NACI errors
30 /** @addtogroup network_access
35 * @brief Enumerations for the NACI error
38 SYNC_AGENT_NA_SUCCESS = 1, /**< Successful */
40 SYNC_AGENT_NA_FAIL = -1000, /**< Fail */
42 SYNC_AGENT_NA_NETWORK_UNAVAILABLE = -1001, /**< Unavailable network */
43 SYNC_AGENT_NA_NETWORK_CHANGING = -1002, /**< Network changing */
44 SYNC_AGENT_NA_INIT_FAIL = -1003, /**< Fail to initialize Network access module */
45 SYNC_AGENT_NA_OPEN_CONNECTION_FAIL = -1004,
46 /**< Fail to Open connection */
47 SYNC_AGENT_NA_HEADER_BINDING_FAIL = -1005, /**< Fail to bind header information */
48 SYNC_AGENT_NA_SEND_MSG_FAIL = -1006, /**< Fail to send message */
49 SYNC_AGENT_NA_SEND_MSG_CANCEL = -1007, /**< Cancel when message is sending */
50 SYNC_AGENT_NA_JUST_SEND_MSG_FAIL = -1008, /**< Fail to send message for send only case */
51 SYNC_AGENT_NA_HEADER_UNBINDING_FAIL = -1009,
52 /**< Fail to unbind header information */
53 SYNC_AGENT_NA_CLOSE_CONNECTION_FAIL = -1010,
54 /**< Fail to close connection */
55 SYNC_AGENT_NA_CANCEL_MSG_FAIL = -1011, /**< Fail to cancel message */
56 SYNC_AGENT_NA_GET_HEADER_INFO_FAIL = -1012, /**< Fail to get header information */
57 SYNC_AGENT_NA_DOWNLOAD_DATA_FAIL = -1013, /**< Fail to download data */
60 SYNC_AGENT_NA_TIME_OUT_SEND_MSG = -1100, /**< Time out to send message */
61 SYNC_AGENT_NA_SEND_MSG_TRY_AGAIN = -1101, /**< Try to send message again*/
62 SYNC_AGENT_NA_ADD_AUTH_INFO_FAIL = -1102, /**< Fail to add authentication information *//* EAS */
63 SYNC_AGENT_NA_UNTRUSTED_CERTIFICATE = -1103,
64 /**< Untrusted certificate */
66 } sync_agent_na_result_e;
74 #endif /* __cplusplus */
75 #endif /* NETWORK_ACCESS_ERROR_H_ */