Error handling¶
-
ERROR_MSG_ETYPE_SIZE¶ Error handling
-
struct
error_message¶ A struct to hold an error message.
- Since
v0.1
-
char
error_type[5]¶ Integer value to differentiate between possible error types
-
char
message[255]¶ Current error message string
-
void
free_error_message(error_message *msg)¶ Free the memory used by an error message
- Parameters
msg – a message to deallocate
- Since
v0.1
-
void
serr(const char *err_id, const char *section, const char *message)¶ A function to display error messages. TODO: integrate error classes support, currently the function doesn’t differentiate between system and value errors.
- Parameters
err_id – an ID of an error to classify it by
section – where error happened
message – error message to send
- Since
v0.1