brodysoft/Cordova-SQLitePlugin — pull request #149 by baharclerode (2014-10-23 22:22:08+00:00)
Title: Fix iOS error objects not having error constants

The error objects returned by the plugin do not have accessible error constants for comparing against `error.code`. Browser implementations (such as Chrome and Safari) provide these, and they allow developers to avoid having to rely upon magic numbers when handling errors from WebSQL.

The following patch brings the error objects from this library into closer API compatibility with other WebSQL implementations and fixes the issues we were seeing about undefined properties.