* Some WIP on file area releated stuff - various partially implemented pieces coming together

* Some changes to database.js: Triggers for FTS were not being created properly
* Misc fixes & improvements
This commit is contained in:
Bryan Ashby 2016-09-28 21:54:25 -06:00
parent 7da0abdc39
commit 5a0b291a02
14 changed files with 675 additions and 21 deletions

View file

@ -19,6 +19,7 @@ class EnigError extends Error {
}
}
// :TODO: Just use EnigError for all
class EnigMenuError extends EnigError { }
exports.EnigError = EnigError;
@ -27,4 +28,5 @@ exports.EnigMenuError = EnigMenuError;
exports.Errors = {
General : (reason, reasonCode) => new EnigError('An error occurred', -33000, reason, reasonCode),
MenuStack : (reason, reasonCode) => new EnigMenuError('Menu stack error', -33001, reason, reasonCode),
DoesNotExist : (reason, reasonCode) => new EnigError('Object does not exist', -33002, reason, reasonCode),
};