-
Notifications
You must be signed in to change notification settings - Fork 681
Errors
Andrey Gershun edited this page May 27, 2015
·
4 revisions
AlaSQL work in two modes:
- with error trapping
- without error trapping
To turn on error trapping mode you can assign true
to errorlog
option:
alasql.options.errorlog = true; // Log or throw error
After that, AlaSQL won't trows error, 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-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo