Skip to content

Commit

Permalink
Add code constants on SQLErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
thgreasi authored May 18, 2019
1 parent dbe378d commit 6c5844b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions www/SQLitePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
sqlError = new Error("an unknown error was returned: " + JSON.stringify(sqlError));
sqlError.code = code;
}

sqlError.UNKNOWN_ERR = 0;
sqlError.DATABASE_ERR = 1;
sqlError.VERSION_ERR = 2;
sqlError.TOO_LARGE_ERR = 3;
sqlError.QUOTA_ERR = 4;
sqlError.SYNTAX_ERR = 5;
sqlError.CONSTRAINT_ERR = 6;
sqlError.TIMEOUT_ERR = 7;

return sqlError;
};

Expand Down

0 comments on commit 6c5844b

Please sign in to comment.