1 message in com.googlegroups.google-gearsSQLite error codes in exception object
FromSent OnAttachments
Ralf Stoltze12 Feb 2008 07:20 
Subject:SQLite error codes in exception object
From:Ralf Stoltze (ralf@googlemail.com)
Date:02/12/2008 07:20:25 AM
List:com.googlegroups.google-gears

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