2020-12-25 00:20:30 +01:00
|
|
|
#pragma once
|
|
|
|
#include <utils/types.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
u16 err;
|
|
|
|
u16 loc;
|
|
|
|
char* file;
|
|
|
|
} ErrCode_t;
|
|
|
|
|
|
|
|
enum {
|
2020-12-25 21:16:24 +01:00
|
|
|
TE_ERR_UNIMPLEMENTED = 15,
|
|
|
|
TE_EXCEPTION_RESET,
|
|
|
|
TE_EXCEPTION_UNDEFINED,
|
|
|
|
TE_EXCEPTION_PREF_ABORT,
|
2020-12-26 01:05:33 +01:00
|
|
|
TE_EXCEPTION_DATA_ABORT,
|
2020-12-26 22:24:41 +01:00
|
|
|
TE_ERR_SAME_LOC,
|
2020-12-26 23:41:25 +01:00
|
|
|
TE_ERR_KEYDUMP_FAIL,
|
|
|
|
TE_ERR_PARTITION_NOT_FOUND,
|
2020-12-29 01:05:33 +01:00
|
|
|
TE_ERR_PATH_IN_PATH,
|
2020-12-25 00:20:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#define newErrCode(err) (ErrCode_t) {err, __LINE__, __FILE__}
|
|
|
|
void DrawError(ErrCode_t err);
|