From 697a9501d85610fe1a7f55aeb75eb9bd8179489e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 7 Jan 2020 00:19:30 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 4 +++- ayanova/src/api/errorhandler.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index f3b68af8..b498efaf 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -51,7 +51,9 @@ SHELL / NAV / MENUS / LAYOUT TODO: Errors - make sure all user displayed errors have an error number if they might be something tech support needs to know (case 1854) - I guess this is a LT feature really - - Once start then make sure documented in manual + - Once start then make sure documented in manual?! + - Not sure it's going to be helpful as no one will ever read it, more important that we get the number for support and that the text is clear for the user + TODO: Test when logging in and server is ops only due to license not installed - Does it work? diff --git a/ayanova/src/api/errorhandler.js b/ayanova/src/api/errorhandler.js index 58183eef..88dbc213 100644 --- a/ayanova/src/api/errorhandler.js +++ b/ayanova/src/api/errorhandler.js @@ -110,3 +110,13 @@ export default { } } }; +/* +ERROR CODES USED: +Client error codes are all in the range of E16 to E999 +Server error codes are all in the range of E1000 to E1999 +API specific (logic) error codes are all in the range of 2000 to 3000 + +CLIENT ERROR CODES: +E16 - + +*/ \ No newline at end of file