From 3ed5eca66b0f5ec780b5e310c0b4e84b915fe1ab Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 13 Apr 2025 14:55:02 +1200 Subject: [PATCH] add error codes --- src/constants.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/constants.js b/src/constants.js index 46121e1..1037ddd 100644 --- a/src/constants.js +++ b/src/constants.js @@ -83,6 +83,15 @@ class Constants { NewAdvert: 0x8A, // when companion is set to manually add contacts } + static ErrorCodes = { + UnsupportedCmd: 1, + NotFound: 2, + TableFull: 3, + BadState: 4, + FileIoError: 5, + IllegalArg: 6, + } + static AdvType = { None: 0, Chat: 1,