GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What do you use for errors?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Curious
Guest





PostPosted: Wed Sep 21, 2005 5:12 am    Post subject: What do you use for errors? Reply with quote

I've read many things. g_error() function, GError object -- what is the standard way to handle programmatic errors for gtk? and what about errors with messages to user?
Back to top
el.pescado
Guest





PostPosted: Wed Sep 21, 2005 12:28 pm    Post subject: Reply with quote

g_error() should be used for programmatic errors (such as passing NULL to a function that expects valid pointer).

GError facility should be used for runtime errors - such as trying to open file that not exists. See http://developer.gnome.org/doc/API/2.0/glib/glib-Error-Reporting.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP