summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'error.h')
-rw-r--r--error.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/error.h b/error.h
new file mode 100644
index 0000000..b70085f
--- /dev/null
+++ b/error.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <string>
+
+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
+
+struct Err
+{
+ ErrCode code;
+ std::string errorMessage;
+};