errCode



Returns the numeric result Result Code Constants for the most recent failed SQLite API call associated with this database connection.

Arguments: This method has no arguments
Return value: The return is a numeric result code.
Remarks: The errMsg method provides an English-language description of the current value of errCode. If a previous SQLite API call failed, but the most recent call succeeded, the return fromerrCodeanderrMsgis undefined. If a SQLite API fails with a result code of MISUSE, that means the API was invoked incorrectly by the program. In that case, the error code and message may or may not be set. In SQLite, extended result codes are turned off by default, so the SQLite API provides an extended error code API that returns the extended result codes even if extended result codes are turned off. In ooSQLite however, the extended result codes are turned on during compilation. This makes theerrCodemethod and the extendedErrCode method exactly equivalent. TheextendedErrCodemethod is provided for completeness
Details: The functionality of theerrCodemethod is similar to that of the SQLite sqlite3_errcode API.