Re: Returning GErrors from more than one domain
- From: Soeren Sandmann <sandmann daimi au dk>
- To: gtk-list gnome org
- Subject: Re: Returning GErrors from more than one domain
- Date: 05 Apr 2002 23:15:53 +0200
Soeren Sandmann <sandmann daimi au dk> writes:
> One solution would be to just return errors, no matter what their
> domain were. This would mean that a caller of the function couldn't
> just switch on the error code. He would have to first call
> g_error_domain() to determine the domain of the error.
Okay, g_error_domain() doesn't exist, but g_error_matches() does. I
guess this means that the function should just return the errors and
tell the caller to use g_error_matches() always.
Sorry about wasting bandwidth about this.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]