Re: Exception handling (was: Quickies about the new GObject)
- From: Havoc Pennington <hp redhat com>
- To: Derek Simkowiak <dereks kd-dev com>
- Cc: gtk-devel-list redhat com
- Subject: Re: Exception handling (was: Quickies about the new GObject)
- Date: 01 Jun 2000 16:27:38 -0400
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]