Hi,
When the execution of an SQL statement fails, Gears raises an
exception. The exception object includes a string message and some
other string properties (fileName, lineNumber, stack, name).
Are these properties documented anywhere?
Also, I would like to see the SQLite error code (or some Gears
specific codes) included in the exception object.
For example, I can only guess if a statement was refused due to a
constraint violation (like a UNIQUE constraint) or a general error.
This information is very valuable and should be exposed to
applications.
Parsing the message string is, al always, not a good option.
/Ralf