An attempt to write to a table that was opened in readonly mode.
Sample using Promise.catch()
doSomeDatabaseWork().then(result => {
// Success
}).catch('InvalidAccessError', e => {
// Failed with InvalidAccessError
console.error ("InvalidAccess error: " + e.message);
}).catch(Error, e => {
// Any other error derived from standard Error
console.error ("Error: " + e.message);
}).catch(e => {
// Other error such as a string was thrown
console.error (e);
});