Tizen Native API
Error Tutorial

This feature is not supported on Tizen.

Registering messages

The error module can provide a system that mimics the errno system of the C standard library. It consists in 2 parts:

So one has to first register all the error messages that a program or a library should manage. Then, when an error occurs, use Eina Error Set function, and when errors are managed, use Eina Error Get function. If Eina Error Set function is used to set an error, do not forget to remove previous set errors before calling Eina Error Set function.

Here is an example for use:

Of course, instead of printf(), Eina Log Print function can be used to have beautiful error messages.