summaryrefslogtreecommitdiff
path: root/exports/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'exports/error.h')
-rw-r--r--exports/error.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/exports/error.h b/exports/error.h
new file mode 100644
index 0000000..64592e1
--- /dev/null
+++ b/exports/error.h
@@ -0,0 +1,17 @@
+#ifndef ERROR_H
+#define ERROR_H
+
+typedef enum errorLevel {
+ ERR_OTHER,
+ ERR_INFO,
+ ERR_WARNING,
+ ERR_FATAL,
+} errorLevel;
+
+typedef struct error {
+ errorLevel level;
+ const char* traceback;
+ const char* cause;
+} error;
+
+#endif /* ERROR_H */