Go to the documentation of this file.
5 #ifndef DMLITE_COMMON_ERRNO_H
6 #define DMLITE_COMMON_ERRNO_H
15 #define DMLITE_SUCCESS 0
20 #define DMLITE_USER_ERROR 0x00000000
21 #define DMLITE_SYSTEM_ERROR 0x01000000
22 #define DMLITE_CONFIGURATION_ERROR 0x02000000
23 #define DMLITE_DATABASE_ERROR 0x03000000
26 #define DMLITE_ETYPE(e) ((e) & 0xFF000000)
27 #define DMLITE_ERRNO(e) ((e) & 0x00FFFFFF)
32 #define DMLITE_SYSERR(e) ((e) | DMLITE_SYSTEM_ERROR)
33 #define DMLITE_CFGERR(e) ((e) | DMLITE_CONFIGURATION_ERROR)
34 #define DMLITE_FCTERR(e) ((e) | DMLITE_FACTORY_ERROR)
35 #define DMLITE_DBERR(e) ((e) | DMLITE_DATABASE_ERROR)
39 #define DMLITE_UNKNOWN_ERROR 256
40 #define DMLITE_UNEXPECTED_EXCEPTION 257
41 #define DMLITE_INTERNAL_ERROR 258
43 #define DMLITE_NO_SUCH_SYMBOL 270
44 #define DMLITE_API_VERSION_MISMATCH 271
45 #define DMLITE_NO_POOL_MANAGER 272
46 #define DMLITE_NO_CATALOG 273
47 #define DMLITE_NO_INODE 274
48 #define DMLITE_NO_AUTHN 275
49 #define DMLITE_NO_IO 276
51 #define DMLITE_NO_SECURITY_CONTEXT 300
52 #define DMLITE_EMPTY_SECURITY_CONTEXT 301
54 #define DMLITE_MALFORMED 350
55 #define DMLITE_UNKNOWN_KEY 351
57 #define DMLITE_NO_COMMENT 400
58 #define DMLITE_NO_REPLICAS 401
59 #define DMLITE_NO_SUCH_REPLICA 402
61 #define DMLITE_NO_USER_MAPPING 500
62 #define DMLITE_NO_SUCH_USER 501
63 #define DMLITE_NO_SUCH_GROUP 502
64 #define DMLITE_INVALID_ACL 504
66 #define DMLITE_UNKNOWN_POOL_TYPE 600
67 #define DMLITE_NO_SUCH_POOL 601