diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-19 12:49:19 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-19 12:49:19 +1200 |
| commit | 8b4b487e685c72a478baf74aea2bf756988fe550 (patch) | |
| tree | 9a5ac8ffbd65942f4ce0117a5316f7db7f4eb918 /error.h | |
| parent | 6655d5dfb24ca3fd36b02550c526bca1f5d924e9 (diff) | |
| parent | 185015b39b8db953b8034f29724ef03de09e7ea1 (diff) | |
| download | YATwm-8b4b487e685c72a478baf74aea2bf756988fe550.tar.gz YATwm-8b4b487e685c72a478baf74aea2bf756988fe550.zip | |
Merge branch 'config-refactor'
Merging in the new config system with commands
Diffstat (limited to 'error.h')
| -rw-r--r-- | error.h | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -7,11 +7,20 @@ typedef unsigned int ErrCode; #define NOERR 0 #define ERR_NON_FATAL 110 #define ERR_FATAL 120 -#define ERR_CFG_NON_FATAL 210 -#define ERR_CFG_FATAL 220 - +#define CFG_ERR_NON_FATAL 210 +#define CFG_ERR_KEYBIND 211 +#define CFG_ERR_FATAL 220 +#define CMD_ERR_NON_FATAL 310 +#define CMD_ERR_NOT_FOUND 311 +#define CMD_ERR_WRONG_ARGS 312 +#define CMD_ERR_FATAL 320 struct Err { ErrCode code; - std::string errorMessage; + std::string message; + Err(ErrCode code, std::string message) + { + this->code = code; + this->message = message; + } }; |
