4a0c5291a8019968119fa8b5d244f8eb7f250a10
[framework/pim/libaccounts-svc.git] / include / account-error.h
1 /*
2  * libaccounts-svc
3  *
4  * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Tarun Kumar <tarun.kr@samsung.com>, Sukumar Moharana <msukumar@samsung.com>, Wonyoung Lee <wy1115.lee@samsung.com>
7  *
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  */
21
22 #ifndef __ACCOUNT_ERROR_H__
23 #define __ACCOUNT_ERROR_H__
24
25 #include <tizen.h>
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
32 /**
33  * @addtogroup CAPI_ACCOUNT_MODULE
34  * @{
35  */
36
37 /**
38  * @file        account-error.h
39  * @brief      ACCOUNT error definitions.
40  */
41
42 //#define TIZEN_ERROR_ACCOUNT_CLASS SLP_ERROR_SOCIAL_CLASS | 0x90
43
44 /**
45  *  @brief    Enumerations of error codes for ACOUNT APIs.
46  */
47 typedef enum
48 {
49
50         ACCOUNT_ERROR_NONE                                      = TIZEN_ERROR_NONE,                   /**< Successful */
51         ACCOUNT_ERROR_OUT_OF_MEMORY                             = TIZEN_ERROR_OUT_OF_MEMORY,              /**< Out of memory */
52         ACCOUNT_ERROR_INVALID_PARAMETER                 = TIZEN_ERROR_INVALID_PARAMETER,                /**< Invalid parameter */
53
54         ACCOUNT_ERROR_DUPLICATED = TIZEN_ERROR_SOCIAL_CLASS | 0x01,
55         ACCOUNT_ERROR_NO_DATA  = TIZEN_ERROR_SOCIAL_CLASS | 0x02,
56
57         ACCOUNT_ERROR_RECORD_NOT_FOUND = TIZEN_ERROR_SOCIAL_CLASS | 0x03,
58         ACCOUNT_ERROR_DB_FAILED = TIZEN_ERROR_SOCIAL_CLASS | 0x04,
59         ACCOUNT_ERROR_DB_NOT_OPENED = TIZEN_ERROR_SOCIAL_CLASS | 0x05,
60         ACCOUNT_ERROR_QUERY_SYNTAX_ERROR = TIZEN_ERROR_SOCIAL_CLASS | 0x06,
61         ACCOUNT_ERROR_ITERATOR_END = TIZEN_ERROR_SOCIAL_CLASS | 0x07,
62
63 } account_error_e;
64
65 /**
66  * @}
67  */
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* __ACCOUNT_ERROR_H__*/