OpenClovis Logo

clDbalErrors.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : dbal
21  * File : clDbalErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  * Error codes returned by the DBAL library.
27  ********************************************************************************/
28 
40 #ifndef _CL_DBAL_ERRORS_H_
41 #define _CL_DBAL_ERRORS_H_
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 #include <clCommon.h>
48 #include <clCommonErrors.h>
49 
50 /******************************************************************************
51  * ERROR CODES
52  *****************************************************************************/
53 
57 #define CL_DBAL_ERR_DB_ERROR 0x100
58 
62 #define CL_DBAL_ERR_COMMIT_FAILED 0x101
63 
67 #define CL_DBAL_ERR_ABORT_FAILED 0x102
68 
69 /******************************************************************************
70  * ERROR/RETRUN CODE HANDLING MACROS
71  *****************************************************************************/
72 
76 #define CL_DBAL_RC(ERROR_CODE) CL_RC(CL_CID_DBAL, (ERROR_CODE))
77 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* _CL_DBAL_ERRORS_H_ */
84 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen