Re: Exception handling (was: Quickies about the new GObject)



Hi,

The problem is that your error handling is all in some big central
error handler callback, and there's no way to handle the exception in
the code that caused it. For example:

void
my_func ()
{
 open_file(); /* causes exception signal to be emitted */
 /* now what? we need to say if (failed) */
}

So the signal thing isn't a full exception solution, though it's
perhaps an interesting add-on to one (see GConfClient in GConf, which
has such a signal, but also a GConfError exception system).

Havoc






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]