Publishing project from SPIN to public
[platform/core/convergence/remote-rsc-svc.git] / include / rrs_error.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef _RRS_ERROR_H_
19 #define _RRS_ERROR_H_
20
21 #include <tizen_type.h>
22 #include <tizen_error.h>
23
24 /**
25  * @ingroup     CAPI_RRS_MODULE
26  * @defgroup    CAPI_RRS_ERROR_MODULE Errors
27  *
28  * @file rrs_error.h
29  * @brief This file contains the list of RRS errors
30  *
31  * @addtogroup CAPI_RRS_ERROR_MODULE
32  * @{
33  * @brief This provides a list of RRS API errors
34  */
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40
41 /**
42  * @brief Base RRS error code (to be added to tizen header files)
43  * @since_tizen 3.0
44  */
45 #define TIZEN_ERROR_RRS_SERVICE 1000
46
47 /**
48  * @brief Enumerations of RRS error codes
49  * @since_tizen 3.0
50  */
51 typedef enum {
52         RRS_ERROR_NONE = TIZEN_ERROR_NONE,      /**< Successful */
53         RRS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,    /**< Invalid Parameter */
54         RRS_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION,    /**< Invalid Operation */
55         RRS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,    /**< Out Of Memory */
56         RRS_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,    /**< Permission Denied */
57         RRS_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED,    /**< Not Supported */
58         RRS_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA,        /**< No Data Error */
59         RRS_ERROR_UNKNOWN = TIZEN_ERROR_UNKNOWN,        /**< Unknown Error */
60         RRS_ERROR_KEY_NOT_AVAILABLE = TIZEN_ERROR_KEY_NOT_AVAILABLE,    /**< Key Not Available */
61         RRS_ERROR_SERVICE_NOT_AVAILABLE = TIZEN_ERROR_RRS_SERVICE | 0x01,       /**< Service Not Available */
62         RRS_ERROR_NOT_FOUND = TIZEN_ERROR_RRS_SERVICE | 0x02,   /**< Not Found Error */
63         RRS_ERROR_NETWORK_UNREACHABLE = TIZEN_ERROR_RRS_SERVICE | 0x03, /**< Network Unreachable */
64         RRS_ERROR_TIMEOUT = TIZEN_ERROR_RRS_SERVICE | 0x04,     /**< Timeout */
65         RRS_ERROR_INVALID_TYPE = TIZEN_ERROR_RRS_SERVICE | 0x05 /**< Invalid Type */
66 } rrs_error_e;
67
68
69 #ifdef __cplusplus
70 }
71 #endif
72 /**
73  * @}
74  */
75
76 #endif  /* _RRS_ERROR_H_ */