KI_ERROR

Find error message from a database error code

Synopsis:
CALL KI_ERROR major, SYM(buf$), [minor]
'ki_error( [major], SYM(buf$), [minor] )
ArgumentEnumerationPurpose
majorMajor error code
SYM(buf$)Symbol of message buffer
minorMinor error code
>KI_ERROR

KI_ERROR

This routine can be called after any KCML database routine to convert the return code in major into a text message. A full list of these messages may be found in Appendix A . The library routine does not change the last status. The optional minor argument can be used to get a more specific error message. The major and minor error codes for the last error on a handle can be discovered using KI_INFO. Not all minor errora have specific error messages and the text may be the same as the generic text associated with the major error code.

Any database specific error text associated with the last error on a handle can be found using KI_ERROR_TEXT.

History
Introduced in KCML 3.00
See Also:
KI_ALLOC_CONNECT, KI_BIND_COL, KI_BIND_PARAM, KI_BOUND_COL, KI_BOUND_PARAM, KI_BUILD, KI_CLEAR, KI_COLUMNS, KI_CONNECT, KI_CONNECT_GET_ATTR, KI_CONNECT_GET_ATTR_STR, KI_CONNECT_SET_ATTR, KI_CONNECT_SET_ATTR_STR, KI_DATABASES, KI_DEFAULT_ROW, KI_DELETE, KI_DELETE_ROWS, KI_DELETE_WHERE, KI_DESCRIBE_COL, KI_DISCONNECT, KI_END, KI_ERROR_TEXT, KI_EXECUTE, KI_FETCH, KI_FREE_CONNECT, KI_GET_COL_LIST, KI_GET_ERROR_TEXT, KI_GET_LANGUAGES, KI_HANDLE_GET_ATTR_POOL, KI_INFO, KI_LOCK_OWNER, KI_MOVE_ROWS, KI_PARTITIONS, KI_PREFETCH_ROWS, KI_PREPARE, KI_READ, KI_READ_ARRAY, KI_READ_HOLD, KI_READ_HOLD_NEXT, KI_READ_HOLD_PTR, KI_READ_NEXT, KI_READ_PTR, KI_READ_RANDOM, KI_READ_RAW, KI_REDIR_CONNECT, KI_REWRITE, KI_SESSIONS, KI_SET_COL_LIST, KI_SET_LANGUAGE, KI_SET_LANGUAGES, KI_SET_ROWS, KI_SQL, KI_SQL_XML, KI_START, KI_START_BEG, KI_START_BETWEEN, KI_START_FIRST, KI_START_ON, KI_START_ROW, KI_START_ROW_BETWEEN, KI_TABLES, KI_TABLESPACES, KI_UNLOCK, KI_WRITE, KI_WRITE_PTR, KI_WRITE_RAW
KCML database status codes