On Thu, Aug 20, 2009 at 22:09:21 -0400, Yu Feng wrote: > GError doesn't support error wrapping as Java does. Is GLib is purposely > avoiding it? > If not, it will become a useful feature as the number of libraries that > uses GError grows, as the feature has already been proved useful in > Java, (indicated in this article): > > http://tutorials.jenkov.com/java-exception-handling/exception-wrapping.html
Actually, in my opinion that article nicely explains, why you do *not* need to have the original error information there. article> The main reason one would use exception wrapping is to prevent the article> code further up the call stack from having to know about every article> possible exception in the system. Well, so the code further up the call stack is not going to look at the inner exception anyway except to print it to the operator, right? But for that, it's enough to embed the wrapped error's message into the wrapping error message. The error code is not relevant. By the way, you should be suggesting things like this on the Gtk list, not here. -- Jan 'Bulb' Hudec <b...@ucw.cz> _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list