vittochan vittochan - 1 year ago 76
C Question

How can I handle error in Tizen Native app using C language?

in the C language there isn't the statement try/catch.
How can I handle the errors?

Answer Source

I totally agree with @tmlen and more added for the Tizen specific,

You can catch a error with get_last_error() if the error is originated from Tizen Native API.


int get_last_result (void);
char* get_error_message (int err);

And errors from EFL can caught with eina_error_get()/eina_error_msg_get()

but unfortunately Tizen 2.4 does not support eina error functions. it support only error type. (I can't understand about EFL guys in samsung...)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download