HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
Constants.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 
4 
5 """@package docstring
6  @file Constants.py
7  @author Oleksii <developers.hce@gmail.com>
8  @link http://hierarchical-cluster-engine.com/
9  @copyright Copyright &copy; 2013 IOIX Ukraine
10  @license http://hierarchical-cluster-engine.com/license/
11  @package HCE project node API
12  @since 0.1
13 """
14 
15 
16 DBI_SUCCESS_CODE = 0
17 DBI_SUCCESS_MSG = "operation success"
18 DBI_INSERT_ERROR_CODE = 1001
19 DBI_INSERT_ERROR_MSG = "insert operation failure"
20 DBI_FETCH_ERROR_CODE = 1002
21 DBI_FETCH_ERROR_MSG = "fetch operation failure"
22 DBI_UPDATE_ERROR_CODE = 1003
23 DBI_UPDATE_ERROR_MSG = "update operation failure"
24 DBI_DELETE_ERROR_CODE = 1004
25 DBI_DELETE_ERROR_MSG = "delete operation failure"
26 DBI_SQL_ERROR_CODE = 1005
27 DBI_SQL_ERROR_MSG = "sql operation failure"
28 DBI_COMMON_ERROR_CODE = 1006
29 DBI_COMMON_ERROR_MSG = "some db error"