Re: [Vala] Wrapping Errors

2009-09-04 Thread Phil Housley
2009/9/3 Yu Feng rainwood...@gmail.com: On Thu, 2009-09-03 at 13:38 +0100, Phil Housley wrote: 2009/8/22 Jan Hudec b...@ucw.cz: 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

Re: [Vala] Wrapping Errors

2009-09-03 Thread Phil Housley
2009/8/22 Jan Hudec b...@ucw.cz: 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

Re: [Vala] Wrapping Errors

2009-09-03 Thread Yu Feng
On Thu, 2009-09-03 at 13:38 +0100, Phil Housley wrote: 2009/8/22 Jan Hudec b...@ucw.cz: 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

Re: [Vala] Wrapping Errors

2009-08-22 Thread Jan Hudec
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,

Re: [Vala] Wrapping Errors with g_prefix_error?

2009-08-22 Thread Jan Hudec
On Sat, Aug 22, 2009 at 11:52:01 -0400, Yu Feng wrote: On Sat, 2009-08-22 at 09:24 +0200, Jan Hudec wrote: [...] 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

Re: [Vala] Wrapping Errors in the vala way

2009-08-22 Thread Yu Feng
On Sat, 2009-08-22 at 21:03 +0200, Jan Hudec wrote: On Sat, Aug 22, 2009 at 11:52:01 -0400, Yu Feng wrote: On Sat, 2009-08-22 at 09:24 +0200, Jan Hudec wrote: [...] 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