21 lines
313 B
C
21 lines
313 B
C
|
#ifndef EXCEPTION_H
|
||
|
#define EXCEPTION_H
|
||
|
|
||
|
typedef enum exception_type {
|
||
|
NO_ERROR, // or NULL
|
||
|
NO_FILE,
|
||
|
XML_FILE_MISSING,
|
||
|
XML_READ_FILE_FAIL,
|
||
|
MD5SUM_VERIFY_FAIL
|
||
|
} exception_type;
|
||
|
|
||
|
typedef struct exception_t {
|
||
|
exception_type type;
|
||
|
char *msg;
|
||
|
} exception_t;
|
||
|
|
||
|
char*
|
||
|
exception_str(exception_t *e);
|
||
|
|
||
|
#endif
|