User Guide
132 Chapter 6 Configuring Verity K2 Server
Error Messages
All K2 Client API functions return an error code, and K2Success is the successful
return value. A complete listing of API error codes follows.
Generic error codes
Usage error codes
Runtime error codes
x <score precision> Set score precision to 8 or 16 bit. By default, 16 bit precision is used.
h or ? Display online help for the
rck2 command options.
rck2 Command Description
Error Code No. Description
K2Success (0) Operation completed successfully.
K2Fail (-2) A general failure not covered by another API error
code.
K2Warn (1) A general warning.
Error Code No. Description
K2Error_NoConnectAvail (-9) A K2 connection is not available.
K2Error_BadArgStruct (-10) Invalid argument structure.
K2Error_BadHandleType (-11) Improper object type.
K2Error_HandleNotFound (-12) Object not found.
K2Error_MissingArgs (-13) Missing required arguments.
K2Error_InvalidArgs (-14) Invalid arguments.
K2Error_Unsupported (-19) Using an unsupported feature.
Error Code No. Description
K2Error_NoMsgDb (-20) Cannot find the message database.
K2Error_FatalError (-21) Fatal error.
K2Error_OutOfMemory (-22) Out of memory.
K2Error_DiskFull (-23) Out of disk space.
K2Error_NoFileHandles (-24) Out of file handles.
K2Error_InvalidDoc (-25) Bad document ID or key (internal or external).
K2Error_FileNotFound (-26) File not found.