Re: [xml] enhancing the error handling API
- From: Aleksey Sanin <aleksey aleksey com>
- To: Stefan Seefeld <seefeld sympatico ca>
- Cc: xml gnome org
- Subject: Re: [xml] enhancing the error handling API
- Date: Tue, 18 Mar 2003 00:56:27 -0800
Stefan Seefeld wrote:
As a suggestion I would propose following change:
Replace all
xmlGenericError(..., msg,...)
with
xmlGenericErrorPlus(..., error_code, file, line, msg, ...)
and provide new error context (callback) that'll be able
to handle all the additional parameters (application can
install application specific error callback).
By doing this, you provide necessary functionality
for apps who care about that and in the same time,
you have full backward API/ABI compatibility.
All the nightmares with managing context in mutltithreading
environment is left to application (it's relatievly easy in each
particular case but very hard to write a good "general" solution).
Also, the change could be done in piece (i.e. no scary big checkins).
With best regards,
Aleksey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]