cleanup
[xendri.git] / lib / core / QConst.php
blobb9d5b6fe49b38d7e6cab0bb40b56a00e684d4fc9
1 <?
3 /**
4 * Q constants list
6 */
7 class QConst
9 /**
10 * Requested class not founded exception
13 const X_CLASS_NOT_FOUND = 404000;
14 /**
15 * Requested configuration can not be found
18 const X_CONFIG_NOT_FOUND = 404001;
19 /**
20 * Requested file not founded
23 const X_FILE_NOT_FOUND = 404002;
24 /**
25 * Requested dir not found
27 const X_DIR_NOT_FOUND = 404003;
28 /**
29 * Application not found
31 const X_APP_NOT_FOUND = 404004;
32 /**
33 * Application state not found
35 const X_STATE_NOT_FOUND = 404005;
37 /**
38 * Database connection failed
40 const X_DB_FAULT = 399999;
42 /**
43 * User not admin
45 const X_USER_NOT_ADMIN = 401001;
47 /**
48 * RQL query invalid exception
51 const X_BAD_RQL = 400000;
53 /**
54 * RQL query bad alternation exception
57 const X_BAD_ALTERNATION = 400001;
58 const X_BAD_REQUEST = 400002;
60 const RQL_SELECT = 1;
61 const RQL_UPDATE = 2;
62 const RQL_DELETE = 4;
63 const RQL_CREATE = 16;
65 const ACL_CHILD_OPERATION = 32;
66 const ACL_RELATION_OPERATION = 64;
68 /**
69 * Configuration file not writable
71 const X_CONFIG_NOT_WRITABLE = 500000;
73 /**
74 * Request class: Unable to start simulation
76 const X_SIMULATION_FAILED = 500001;
78 /**
79 * Undefined exception
81 const X_UNDEFINED = 999999;