Error Tutorial
Registering messages
The error module can provide a system that mimics the errno system of the C standard library. It consists in 2 parts:
- a way of registering new messages with eina_error_msg_register() and eina_error_msg_get(),
- a way of setting / getting last error message with eina_error_set() / eina_error_get().
Here is an example of use:
Of course, instead of printf(), eina_log_print() can be used to have beautiful error messages.