Xbase Return Codes

Page Updated 2/19/04


Beginning with release 3.0 exception processing has been removed from the library. There were reports that it was not 100% working, so I trimmed the library back to working code. If there are any volunteers to re-install the exception processing, AND test it, let me know. Thanks - Gary It is generally a good idea to check the method return codes to verify an error hasn't occured. Most Xbase DBMS methods return a SHORT return code value which corresponds to a value in this table.

Xbase Return Codes

NumberErrorDescriptionType
0XB_NO_ERRORSuccessGeneral
100XB_XBASE_EOFEnd of fileDatabase
Index
102XB_NO_MEMORYError when allocating memoryGeneral
103XB_FILE_EXISTSFile Already ExistsDatabase
104XB_OPEN_ERRORError when opening fileDatabase
105XB_WRITE_ERRORError occured when writing to fileDatabase
Index
106XB_UNKNOWN_FIELD_TYPEField was not one of:
XB_CHAR_FLD
XB_FLOAT_FLD
XB_NUMERIC_FLD
XB_DATE_FLD
XB_LOGICAL_FLD or XB_MEMO_FLD
Field
107XB_ALREADY_OPENCan't open the same file twiceDatabase
Index
108XB_NOT_XBASECan't open non X-Base file with
X-Base routines
Database
109XB_INVALID_RECORDNot a valid recordDatabase
110XB_INVALID_OPTIONNot a valid optionGeneral
112XB_SEEK_ERRORCould not position in fileDatabase
Index
114XB_NOT_FOUNDRecord for key not foundIndex
116XB_INVALID_KEYInvalid key argument givenIndex
118XB_KEY_NOT_UNIQUETrying to add a duplicate key for an unique indexIndex
119XB_INVALID_KEY_EXPRESSIONAn invalid key expression givenIndex
121XB_INVALID_KEY_TYPEInvalid Key TypeIndex
122XB_INVALID_NODE_NOInternal index error, notify tech supportIndex
123XB_NODE_FULLInternal index error, notify tech supportIndex
124XB_INVALID_FIELDNOAttempt to access invalid field numberField
125XB_INVALID_DATAInvalid data encounteredField
126XB_NOT_LEAFNODEInternal index error, notify tech supportIndex
127XB_LOCK_FAILEDLock function failed
See errno for detail
Lock
128XB_CLOSE_ERRORError closing fileDatabase
Index
129XB_INVALID_SCHEMAError with schema definition, check decimal pointsDatabase
130XB_INVALID_NAMEInvalid database nameMemo
131XB_INVALID_BLOCK_SIZEBlock size is invalid, must be increment of 512Memo
132XB_INVALID_BLOCK_NOInvalid block number usedMemo
133XB_NOT_MEMO_FIELDNot a memo fieldMemo
134XB_NO_MEMO_DATANo memo dataMemo
135XB_EXP_SYNTAX_ERRORExpression syntax errorExpression
136XB_PARSE_ERRORParse error in expressionExpression
137XB_NO_DATANo data for expressionExpression
140XB_INVALID_FIELDInvalid field in expressionExpression
141XB_INSUFFICIENT_PARMSInsufficient paramaters for functionExpression
142XB_INVALID_FUNCTIONInvalid function encounteredExpression