summaryrefslogtreecommitdiff
path: root/exports/error.h
blob: 64592e19d81c8d36d220777c3566d3a6376d5802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 */