-
Notifications
You must be signed in to change notification settings - Fork 690
Errors
Mathias Rangel Wulff edited this page Jun 12, 2015
·
4 revisions
AlaSQL worsk in two modes:
- with error trapping
- without error trapping
To turn error trapping on by setting errorlog to true in [alasql.options](alasql options)
alasql.options.errorlog = true; // Log or throw errorNow AlaSQL won't trow errors, but you can check for error codes in callback function, like here:
alasql.options.errorlog = true;
alasql('SELECT 1/0',[],function(res,err) {
console.log(err);
});The list of error codes is not yet ready.
© 2014-2026, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo