Handles error codes and messages.
| Attribute |
Description |
Type |
| code |
Returns the value of the error code. |
short |
| message |
Returns an error message describing the error encountered. |
string |
The table below contains valid error codes.
| Numeric value |
Constant |
Description |
| 0 |
UNKNOWN_ERR |
Indicates that the transaction failed for reasons unrelated to the database itself and
not covered by any other error code. |
| 1 |
DATABASE_ERR |
The statement failed for reasons related to the database, but not covered by any other
error code. |
| 2 |
VERSION_ERR |
Indicates that the database version does not match the expected version. |
| 3 |
TOO_LARGE_ERR |
The statement failed because the data returned from the database were too large. |
| 4 |
QUOTA_ERR |
Indicates that the statement failed because of insufficient storage space. |
| 5 |
SYNTAX_ERR |
Indicates that the statement failed because of a syntax error, or the number of
arguments did not match the number of '?' placeholders in the statement, or the
statement tried to use a statement that is not allowed, or the statement tried to modify
the database but the transaction was executed in read-only mode. |
| 6 |
CONSTRAINT_ERR |
An INSERT, UPDATE, or REPLACE statement failed
due to a constraint error. |
| 7 |
TIMEOUT_ERR |
A timeout occurred while waiting for a transaction lock. |