Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
xbretcod.h
Go to the documentation of this file.
1/* xbretcod.h
2
3XBase64 Software Library
4
5Copyright (c) 1997,2003,2014,2022,2023 Gary A Kunkel
6
7The xb64 software library is covered under the terms of the GPL Version 3, 2007 license.
8
9Email Contact:
10
11 XDB-devel@lists.sourceforge.net
12 XDB-users@lists.sourceforge.net
13
14*/
15
16#ifndef __XB_RETCODES_H__
17#define __XB_RETCODES_H__
18
19/***********************************************/
20/* Return Codes and Error Messages */
21
22namespace xb{
23
24 #define XB_NO_ERROR 0 // general
25 #define XB_NO_MEMORY -100 // general
26 #define XB_INVALID_OPTION -101 // general
27 #define XB_INVALID_PARAMETER -102 // general
28 #define XB_DUP_TABLE_OR_ALIAS -110 // table manager
29 #define XB_INVALID_NODELINK -120 // linklist
30 #define XB_KEY_NOT_UNIQUE -121 // linklist, index
31 #define XB_MEMCPY_ERROR -122 // memcpy failure
32
33 #define XB_FILE_EXISTS -200 // file
34 #define XB_ALREADY_OPEN -201 // file
35 #define XB_DBF_FILE_NOT_OPEN -202 // file
36 #define XB_FILE_NOT_FOUND -203 // file
37 #define XB_FILE_TYPE_NOT_SUPPORTED -204 // file
38 #define XB_RENAME_ERROR -205 // file
39 #define XB_INVALID_OBJECT -206 // file
40 #define XB_NOT_OPEN -207 // file
41 #define XB_NOT_FOUND -208 // file
42 #define XB_OPEN_ERROR -209 // file
43 #define XB_CLOSE_ERROR -210 // file
44 #define XB_SEEK_ERROR -211 // file
45 #define XB_READ_ERROR -212 // file
46 #define XB_WRITE_ERROR -213 // file
47 #define XB_EOF -214 // file
48 #define XB_BOF -215 // file
49 #define XB_INVALID_BLOCK_SIZE -216 // file
50 #define XB_INVALID_BLOCK_NO -217 // file
51 #define XB_INVALID_RECORD -218 // file
52 #define XB_DELETE_FAILED -219 // file
53 #define XB_INVALID_TABLE_NAME -220 // file
54 #define XB_EMPTY -221 // file
55 #define XB_LIMIT_REACHED -222 // file
56 #define XB_BLOCKREAD_NOT_ENABLED -223 // file
57 #define XB_DIRECTORY_ERROR -224 // file
58
59 #define XB_INVALID_FIELD_TYPE -300 // field
60 #define XB_INVALID_FIELD_NO -301 // field
61 #define XB_INVALID_DATA -302 // field
62 #define XB_INVALID_FIELD_NAME -303 // field
63 #define XB_INVALID_MEMO_FIELD -304 // field
64 #define XB_INVALID_FIELD -305 // field
65 #define XB_INVALID_FIELD_LEN -306 // field
66 #define XB_INVALID_DATE -307 // date field
67
68 #define XB_INVALID_LOCK_OPTION -400 // lock
69 #define XB_LOCK_FAILED -401 // lock
70 #define XB_TABLE_NOT_LOCKED -402 // lock - need table locked for operation
71
72 #define XB_PARSE_ERROR -500 // expression
73 #define XB_INVALID_FUNCTION -501 // expression
74 #define XB_INVALID_PARM -502 // expression
75 #define XB_INCONSISTENT_PARM_LENS -503 // expression
76 #define XB_INCOMPATIBLE_OPERANDS -504 // expression
77 #define XB_UNBALANCED_PARENS -505 // expression
78 #define XB_UNBALANCED_QUOTES -506 // expression
79 #define XB_INVALID_EXPRESSION -507 // expression
80
81 #define XB_INVALID_KEYNO -600 // index
82 #define XB_INVALID_INDEX -601 // index file error
83 #define XB_INVALID_TAG -602 // invalid index tag name, must be <= 10 bytes
84 #define XB_INVALID_PAGE -603 // invalid index page
85
86
87 #define XB_SYNTAX_ERROR -700 // sql syntax error
88
89
90 #define XB_MAX_ERROR_NO -999
91
92
93/* when updating this table, also need to update messages in xbssv.cpp */
94
95
96} /* namespace */
97#endif /* __XB_RETCODES_H__ */
98
Definition: xbdate.cpp:19